{"id":21278044,"url":"https://github.com/b13/js-form","last_synced_at":"2025-10-19T04:02:42.456Z","repository":{"id":18070529,"uuid":"21131537","full_name":"b13/js-form","owner":"b13","description":"Module to submit a form via ajax and do a basic validation","archived":false,"fork":false,"pushed_at":"2014-09-03T14:29:12.000Z","size":204,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-09T23:38:56.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/b13.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":"2014-06-23T15:32:13.000Z","updated_at":"2014-09-07T17:16:32.000Z","dependencies_parsed_at":"2022-09-14T21:41:49.100Z","dependency_job_id":null,"html_url":"https://github.com/b13/js-form","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b13%2Fjs-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b13","download_url":"https://codeload.github.com/b13/js-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243738954,"owners_count":20339997,"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","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-21T10:09:11.519Z","updated_at":"2025-10-19T04:02:37.417Z","avatar_url":"https://github.com/b13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"js-form\n=======\n\nModule to submit forms via ajax and do a basic form validation\n\n# requireJS config\n\n```js\nvar require = {\n\tpaths: {\n\t\t'form' : 'path/to/form'\n\t}\n};\n```\n\n# Basic usage\n\n```js\nrequire(['form'], function(form) {\n\n\tvar formUtilities = new form();\n\n\t\t// check if the form is valid\n\tformUtilities.validateForm($form);\n\n\t\t// submit form via ajax and return response as jquery promise\n\tformUtilities.submitFormViaAjax($form, {urlParams: 'ajax=1'}).done(function(response) {\n\t\t// use response from ajax request\n\t});\n\n\t\t// submit form with a attachment via ajax and return the response as jquery promise\n\tformUtilities.submitFormWithAttachmentViaAjax($form, {urlParams: 'ajax=1'}).done(function(response) {\n\t\t// use response from ajax request\n\t});\n});\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fjs-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb13%2Fjs-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb13%2Fjs-form/lists"}