{"id":30107075,"url":"https://github.com/benignware/remoteform","last_synced_at":"2025-08-31T12:09:36.067Z","repository":{"id":28534589,"uuid":"118662271","full_name":"benignware/remoteform","owner":"benignware","description":"Ajaxify forms easily","archived":false,"fork":false,"pushed_at":"2023-01-03T21:42:53.000Z","size":1729,"stargazers_count":0,"open_issues_count":18,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-10T01:32:36.225Z","etag":null,"topics":["ajax","forms"],"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/benignware.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":"2018-01-23T20:00:36.000Z","updated_at":"2019-07-09T11:21:37.000Z","dependencies_parsed_at":"2023-01-14T09:00:39.735Z","dependency_job_id":null,"html_url":"https://github.com/benignware/remoteform","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/benignware/remoteform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fremoteform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fremoteform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fremoteform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fremoteform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benignware","download_url":"https://codeload.github.com/benignware/remoteform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fremoteform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272977267,"owners_count":25025092,"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-08-31T02:00:09.071Z","response_time":79,"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":["ajax","forms"],"created_at":"2025-08-10T01:32:15.272Z","updated_at":"2025-08-31T12:09:36.049Z","avatar_url":"https://github.com/benignware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remoteform\n\nAjaxify forms easily\n\n## Install\n\nFirst of all install [nodejs](https://nodejs.org]) if you haven't already.\n\nIn your project directory, hit the following command order to install `remoteform`:\n\n```cli\nnpm install remoteform --save\n```\n\n`remoteform` relies on `fetch` for making requests, hence you may need to install a [polyfill](https://www.npmjs.com/package/isomorphic-fetch) in addition.\n\n## Usage\n\nCreate your html form\n\n```html\n\u003cdiv id=\"test\" class=\"remoteform\"\u003e\n  \u003cform action=\"/submit.html\" method=\"POST\"\u003e\n    \u003cdiv class=\"form-group\"\u003e\n      \u003cinput class=\"form-control\" name=\"test\" value=\"\"/\u003e\n    \u003c/div\u003e\n    \u003cbutton class=\"btn btn-primary\" type=\"submit\"\u003eSubmit\u003c/button\u003e\n  \u003c/form\u003e\n\u003c/div\u003e\n```\n\nImport `remoteform` to your bundle and initialize with the specified selector:\n\n```js\nconst remoteform = require('remoteform');\n\nremoteform('#test');\n```\n\nIf you control all forms on your site, you may want to ajaxify all forms globally by omitting the selector or passing in `form`.\n\n### Customizing response selector\n\nBy default, `remoteform` generates a unique selector for the given element against which it matches the response. You can customize the `responseSelector` by specifying the corresponding option as follows.\n\n```js\nconst remoteform = require('remoteform');\n\nremoteform('#test', {\n  responseSelector: '.my-response-selector'\n});\n```\n\n## Options\n\n| Name                    | Type    | Description                                     |\n|-------------------------|---------|-------------------------------------------------|\n| request                 | Object  | Options passed to fetch                         |\n| responseSelector        | String  | Customize the remote content selector           |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fremoteform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenignware%2Fremoteform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fremoteform/lists"}