{"id":23194155,"url":"https://github.com/glaucocustodio/jquery-ajax-wizard","last_synced_at":"2025-08-18T20:33:58.598Z","repository":{"id":18300106,"uuid":"21475318","full_name":"glaucocustodio/jquery-ajax-wizard","owner":"glaucocustodio","description":"A form wizard plugin for when next step is gotten via AJAX based on user's input","archived":false,"fork":false,"pushed_at":"2014-10-20T20:18:49.000Z","size":228,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-11T00:36:38.167Z","etag":null,"topics":["jquery-plugin","wizard-steps"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glaucocustodio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-03T20:02:47.000Z","updated_at":"2023-06-29T02:30:13.000Z","dependencies_parsed_at":"2022-08-24T03:21:14.141Z","dependency_job_id":null,"html_url":"https://github.com/glaucocustodio/jquery-ajax-wizard","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/glaucocustodio%2Fjquery-ajax-wizard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glaucocustodio%2Fjquery-ajax-wizard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glaucocustodio%2Fjquery-ajax-wizard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glaucocustodio%2Fjquery-ajax-wizard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glaucocustodio","download_url":"https://codeload.github.com/glaucocustodio/jquery-ajax-wizard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230276310,"owners_count":18201092,"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":["jquery-plugin","wizard-steps"],"created_at":"2024-12-18T13:13:19.688Z","updated_at":"2024-12-18T13:13:20.333Z","avatar_url":"https://github.com/glaucocustodio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Ajax Wizard\n\nA form wizard plugin for when next step is gotten via AJAX based on user's input.\n\n## When to use\n\nYou have a multi steps form but just know the first step, the further steps rely on user's input. When user fills up first step and goes forward, an AJAX request is made posting user's input and next step is filled with the returned HTML.\n\nA hash from each step is generated, so, a new AJAX request only is made to a already gotten step (in case of regression) if some data has been changed.\n\n## Usage\n\n1- Include jQuery:\n```html\n\u003cscript src=\"http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js\"\u003e\u003c/script\u003e\n```\n\n2- Download plugin (`bower install jquery-ajaxWizard`) and include it:\n```html\n\u003cscript src=\"dist/jquery.ajaxWizard.min.js\"\u003e\u003c/script\u003e\n```\n\n3- Call the plugin:\n```html\n\u003cform id=\"my-form\"\u003e\n  \u003cfieldset\u003e\n    \u003cinput type=\"text\" name=\"name\" class=\"required\"/\u003e\n    \u003ca href=\"javascript:void(0)\" class=\"custom-forward-selector\"\u003eforward\u003c/a\u003e\n  \u003c/fieldset\u003e\n  \u003c!-- jQuery Ajax Wizard will place the returned HTML from AJAX in further fieldsteps --\u003e\n\u003c/form\u003e\n```\n\n```javascript\n$(\"#my-form\").ajaxWizard({\n  // options and callbacks\n});\n```\n\n## Options and Callbacks\n\nHere's a list of available options and callbacks.\n\n```javascript\n$(\"#my-form\").ajaxWizard({\n  contentUrl: '/my/api/url',\n  beforeForward: function(form){\n    // validates form with jQuery Validation plugin before forward\n    return $(form).valid();\n  },\n  controlSelectors: {\n    forward:  '.custom-forward-selector',\n    backward: '.custom-backward-selector'\n  }\n});\n```\n\nAttribute\t\t\t       | Type\t\t\t\t  | Required\t| Description\n---\t\t\t\t\t\t       | ---\t\t\t\t\t| ---\t\t\t\t| ---\n`contentUrl`         | *String*\t\t  | `yes`\t\t  | Url for AJAX submission.\n`forward`\t\t         | *String*\t\t  | `no`\t\t  | jQuery compatible selector.\n`backward`\t         | *String*\t\t  | `no`\t\t  | jQuery compatible selector.\n`beforeForward`\t     | *Function*\t\t| `no`\t\t  | Before forward callback. It must return `true` to continue.\n`afterForward`\t     | *Function*\t\t| `no`\t\t  | After forward callback. Fired after a new AJAX request (when current step not yet cached or when data has been changed).\n`afterCachedForward` | *Function*\t\t| `no`\t\t  | After forward callback. Fired after a cached step be displayed (no AJAX request).\n`beforeBackward`\t   | *Function*\t\t| `no`\t\t  | Before backward callback. It must return `true` to continue.\n`afterBackward`\t     | *Function*\t\t| `no`\t\t  | After backward callback.\n\n\n## Contributing\n\nCheck [CONTRIBUTING.md](https://github.com/glaucocustodio/jquery-ajax-wizard/blob/master/CONTRIBUTING.md) for more information.\n\n## License\n\nThis projected is licensed under the terms of the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglaucocustodio%2Fjquery-ajax-wizard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglaucocustodio%2Fjquery-ajax-wizard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglaucocustodio%2Fjquery-ajax-wizard/lists"}