{"id":18696529,"url":"https://github.com/hermanya/ajax-form","last_synced_at":"2025-07-26T09:33:46.969Z","repository":{"id":76896935,"uuid":"49847770","full_name":"Hermanya/ajax-form","owner":"Hermanya","description":"Ajax forms made easy, little javascript needed","archived":false,"fork":false,"pushed_at":"2016-01-20T16:29:04.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T09:15:50.069Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hermanya.github.io/ajax-form/demo","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hermanya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-18T02:46:33.000Z","updated_at":"2016-01-20T03:29:11.000Z","dependencies_parsed_at":"2023-03-21T09:32:45.955Z","dependency_job_id":null,"html_url":"https://github.com/Hermanya/ajax-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hermanya/ajax-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fajax-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fajax-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fajax-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fajax-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanya","download_url":"https://codeload.github.com/Hermanya/ajax-form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fajax-form/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267145635,"owners_count":24042651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T11:19:22.374Z","updated_at":"2025-07-26T09:33:46.929Z","avatar_url":"https://github.com/Hermanya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ajax form\n---------\nHow to use:\n- import `\u003cscript src=\"http://hermanya.github.io/ajax-form/ajax-form.js\"\u003e\u003c/script\u003e` or using your bundler of choice\n- add `ajax` attribute on a form\n- listen for `success` and `error` events on the form\n\nOther features:\n- you may add `contentType=\"urlencoded\"` form attribute, `json` by default\n- while in progress form disables submit buttons and has `.submitting` class\n- if response body is json, then available through `event.detail.parsedResponseBody`\n\nExample:\n```html\n\u003cscript src=\"http://hermanya.github.io/ajax-form/ajax-form.js\"\u003e\u003c/script\u003e\n\u003cform ajax action=\"/login\" method=\"post\"\u003e\n  \u003cinput type=\"email\" name=\"username\" placeholder=\"email address\"\u003e\n  \u003cinput type=\"password\" name=\"password\" placeholder=\"password\"\u003e\n  \u003cbutton type=\"submit\"\u003elog in\u003c/button\u003e\n\u003c/form\u003e\n\u003cscript\u003e\n  var loginForm = document.querySelector('form[action=\"/login\"]');\n  loginForm.addEventListener('success', function () {\n    location.hash = 'profile';\n  })\n  loginForm.addEventListener('error', function () {\n    alert('We do not recognize you, double check your credentials.');\n  })\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fajax-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanya%2Fajax-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fajax-form/lists"}