{"id":21365002,"url":"https://github.com/sablejs/ajax4sablejs","last_synced_at":"2025-03-16T07:40:20.131Z","repository":{"id":57175147,"uuid":"370555324","full_name":"sablejs/ajax4sablejs","owner":"sablejs","description":"A tiny and simple ajax binding for sablejs","archived":false,"fork":false,"pushed_at":"2021-09-25T12:26:30.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T05:20:49.223Z","etag":null,"topics":["ajax","sablejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sablejs.png","metadata":{"files":{"readme":"README.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":"2021-05-25T03:42:40.000Z","updated_at":"2021-12-16T03:59:12.000Z","dependencies_parsed_at":"2022-09-03T11:01:17.620Z","dependency_job_id":null,"html_url":"https://github.com/sablejs/ajax4sablejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sablejs%2Fajax4sablejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sablejs%2Fajax4sablejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sablejs%2Fajax4sablejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sablejs%2Fajax4sablejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sablejs","download_url":"https://codeload.github.com/sablejs/ajax4sablejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841202,"owners_count":20356441,"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":["ajax","sablejs"],"created_at":"2024-11-22T07:08:52.574Z","updated_at":"2025-03-16T07:40:20.113Z","avatar_url":"https://github.com/sablejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ajax4sablejs\n===\n\n\u003e A tiny and simple ajax implenment for sablejs\n\n### Browser Support\n\n* IE9+\n* Other browsers\n\n### Usage\n\nInstall ajax4sablejs first\n```shell\n\u003e npm install ajax4sablejs --save\n```\n\nthen import it to sablejs vm\n\n```javascript\nconst ajax4sablejs = require(\"ajax4sablejs\");\nconst VM = require(\"sablejs/runtime\")();\nconst vm = new VM();\najax4sablejs(vm); // that's all!\n```\n\n### API\n\n```javascript\najax({\n    url: String,\n    type: String, // json | urlencoded | text\n    method: String, // GET | POST\n    headers: Object\u003cString, String\u003e,\n    data: String|JSON,\n    success: Function(response:String|JSON, headers:JSON),\n    error: Function(readyState:Number, status:Number),\n});\n```\n\n### License\n\najax4sablejs\n\nCopyright (c) 2020-2021 ErosZhao\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nNon-profit projects of individuals or organizations and commercial projects with \ncommercial authorization of the author.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsablejs%2Fajax4sablejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsablejs%2Fajax4sablejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsablejs%2Fajax4sablejs/lists"}