{"id":13607095,"url":"https://github.com/filamentgroup/Ajax-Include-Pattern","last_synced_at":"2025-04-12T11:31:27.359Z","repository":{"id":2841669,"uuid":"3845165","full_name":"filamentgroup/Ajax-Include-Pattern","owner":"filamentgroup","description":"An Ajax-Include Pattern for Modular Content ","archived":true,"fork":false,"pushed_at":"2022-08-30T21:45:37.000Z","size":415,"stargazers_count":625,"open_issues_count":0,"forks_count":50,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-04-10T13:11:06.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://filamentgroup.com/lab/ajax_includes_modular_content/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"pazguille/voix","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/filamentgroup.png","metadata":{"files":{"readme":"README-plugins.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-27T15:28:34.000Z","updated_at":"2025-03-09T19:38:24.000Z","dependencies_parsed_at":"2022-08-20T12:40:45.170Z","dependency_job_id":null,"html_url":"https://github.com/filamentgroup/Ajax-Include-Pattern","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/filamentgroup%2FAjax-Include-Pattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filamentgroup%2FAjax-Include-Pattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filamentgroup%2FAjax-Include-Pattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filamentgroup%2FAjax-Include-Pattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filamentgroup","download_url":"https://codeload.github.com/filamentgroup/Ajax-Include-Pattern/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560112,"owners_count":21124594,"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-08-01T19:01:15.522Z","updated_at":"2025-04-12T11:31:25.253Z","avatar_url":"https://github.com/filamentgroup.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## HijaxInclude with Forms\n\nIf you include `src/ajaxIncludeForms.js` (or `dist/ajaxIncludePlugins.js`) and `$(...).serialize()` is available, you can also use HijaxInclude with forms to hijack the submit event.\n\n### HTML\n\n    \u003cform action=\"demo-content/form-response.html\" method=\"post\" data-replace data-interaction\u003e\n      \u003cinput type=\"text\" name=\"textField\" value=\"Test\"\u003e\n      \u003cinput type=\"submit\" value=\"Submit\"\u003e\n    \u003c/form\u003e\n\n### JavaScript\n\n    $( \"form[data-interaction]\" ).bind( \"submit\", function() {\n      $( this ).removeAttr( \"data-interaction\" ).ajaxInclude();\n      return false;\n    });\n\n## Header Hooks\n\nIf you include `src/ajaxIncludeHeaderHooks.js` (or `dist/ajaxIncludePlugins.js`), you can execute JavaScript when a specific HTTP Header is returned to the XHR object.\n\n### JavaScript\n\n    // Example: Redirect to the url returned by the\n    //   X-AjaxInclude-Redirect header.\n    $( el ).ajaxInclude({\n      headerHooks: {\n        'X-AjaxInclude-Redirect': function( url ) {\n          window.location.href = url;\n        }\n      }\n    });","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilamentgroup%2FAjax-Include-Pattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilamentgroup%2FAjax-Include-Pattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilamentgroup%2FAjax-Include-Pattern/lists"}