{"id":13714911,"url":"https://github.com/karlerikjonatan/framer-module-ajax","last_synced_at":"2025-05-07T03:31:01.046Z","repository":{"id":29442030,"uuid":"32978133","full_name":"karlerikjonatan/framer-module-ajax","owner":"karlerikjonatan","description":"An Ajax module for Framer.","archived":false,"fork":false,"pushed_at":"2015-10-28T09:16:25.000Z","size":596,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T15:09:48.362Z","etag":null,"topics":["framer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/karlerikjonatan.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":"2015-03-27T09:34:57.000Z","updated_at":"2024-05-14T14:48:39.000Z","dependencies_parsed_at":"2022-09-06T18:12:06.479Z","dependency_job_id":null,"html_url":"https://github.com/karlerikjonatan/framer-module-ajax","commit_stats":null,"previous_names":["karlerikjonatan/framer.module.ajax"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlerikjonatan%2Fframer-module-ajax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlerikjonatan%2Fframer-module-ajax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlerikjonatan%2Fframer-module-ajax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlerikjonatan%2Fframer-module-ajax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karlerikjonatan","download_url":"https://codeload.github.com/karlerikjonatan/framer-module-ajax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252782576,"owners_count":21803404,"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":["framer"],"created_at":"2024-08-03T00:00:51.840Z","updated_at":"2025-05-07T03:31:00.219Z","avatar_url":"https://github.com/karlerikjonatan.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":[],"readme":"# framer.module.ajax\nframer.module.ajax is an Ajax module for Framer.\n\n## Installation\nAdd ```ajax.coffee``` to the /modules folder of your project.\n\n## Usage\nTo include the module within your project, add the following:\n\n``` coffeescript\najax = require \"ajax\"\n```\n\nframer.module.ajax consists of the method ```get``` and requires the parameters ```url```, ```callback```.\n\n#### get\n``` coffeescript\najax.get(url, (response) -\u003e callback(response))\n```\nThe ```url``` and ```callback``` parameters defines the URL to request and the function to run (together with response object) on success.\n\nframer.module.ajax parses all responses as ```JSON```.\n\n### Example\n``` coffeescript\n# Module\najax = require \"ajax\"\n\n# GET\najax.get(\"https://randomuser.me/api/\", (response) -\u003e createAvatar(response))\n\n# Avatar\ncreateAvatar = (data) -\u003e\n\tavatar = new Layer(\n\t\theight: 200\n\t\twidth: 200\n\t\timage: data.results[0].user.picture.large\n\t)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlerikjonatan%2Fframer-module-ajax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarlerikjonatan%2Fframer-module-ajax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlerikjonatan%2Fframer-module-ajax/lists"}