{"id":18727089,"url":"https://github.com/stisa/ajax","last_synced_at":"2025-06-23T05:34:43.093Z","repository":{"id":56696591,"uuid":"83994039","full_name":"stisa/ajax","owner":"stisa","description":"Ajax wrapper for nim js backend","archived":false,"fork":false,"pushed_at":"2021-10-28T22:27:47.000Z","size":23,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T11:02:28.765Z","etag":null,"topics":["ajax","hacktoberfest","json","nim","nim-lang","wrapper","xmlhttprequest"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/stisa.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":"2017-03-05T18:54:16.000Z","updated_at":"2024-05-29T18:41:47.000Z","dependencies_parsed_at":"2022-08-15T23:31:06.184Z","dependency_job_id":null,"html_url":"https://github.com/stisa/ajax","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/stisa%2Fajax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stisa%2Fajax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stisa%2Fajax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stisa%2Fajax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stisa","download_url":"https://codeload.github.com/stisa/ajax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248596592,"owners_count":21130726,"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","hacktoberfest","json","nim","nim-lang","wrapper","xmlhttprequest"],"created_at":"2024-11-07T14:16:22.872Z","updated_at":"2025-04-12T16:32:05.490Z","avatar_url":"https://github.com/stisa.png","language":"Nim","readme":"Ajax\n----\n[![nimble](https://raw.githubusercontent.com/yglukhov/nimble-tag/master/nimble_js.png)](#)\n\nBasic wrapper for ajax, for the javascript backend of [nim](https://nim-lang.org)\n  \n[Examples](http://stisa.space/ajax)  \n\n[Generated Docs](http://stisa.space/ajax/ajax.html)\n\nExample: Alert the content of a file named `test.html`\n```nim\nimport dom\nimport ajax\n\nproc makeRequest(url:cstring) =\n  var httpRequest = newXMLHttpRequest()\n\n  if httpRequest.isNil:\n    window.alert(\"Giving up :( Cannot create an XMLHTTP instance\")\n    return\n  proc alertContents(e:Event) =\n    if httpRequest.readyState == rsDONE:\n      if httpRequest.status == 200:\n        window.alert(httpRequest.responseText)\n      else:\n        window.alert(\"There was a problem with the request.\")\n  httpRequest.onreadystatechange = alertContents\n  httpRequest.open(\"GET\", url);\n  httpRequest.send();\n\ndocument.getElementById(\"ajaxButton\").onclick = proc(e:Event) =\n  makeRequest(\"test.html\")\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstisa%2Fajax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstisa%2Fajax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstisa%2Fajax/lists"}