{"id":18614946,"url":"https://github.com/andrewjbateman/javascript-ajax-typeahead","last_synced_at":"2025-10-05T14:41:08.614Z","repository":{"id":96860412,"uuid":"157860791","full_name":"AndrewJBateman/javascript-ajax-typeAhead","owner":"AndrewJBateman","description":":clipboard: javascript ajax add suggestions when typing into text box, Javascript30 youtube tutorial from Wes Bos","archived":false,"fork":false,"pushed_at":"2020-07-27T07:55:46.000Z","size":206,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T02:45:04.701Z","etag":null,"topics":["ajax","bootstrap4","css","html","javascript","javascript30"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-16T11:52:36.000Z","updated_at":"2022-01-11T22:16:24.000Z","dependencies_parsed_at":"2023-03-30T11:36:45.977Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/javascript-ajax-typeAhead","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/AndrewJBateman%2Fjavascript-ajax-typeAhead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjavascript-ajax-typeAhead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjavascript-ajax-typeAhead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fjavascript-ajax-typeAhead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/javascript-ajax-typeAhead/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406449,"owners_count":19633024,"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","bootstrap4","css","html","javascript","javascript30"],"created_at":"2024-11-07T03:27:37.941Z","updated_at":"2025-10-05T14:41:03.576Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","readme":"# :zap: Javascript Ajax Type-ahead\n\nWes Bos Youtube Tutorial: [Ajax Type Ahead with fetch() - #JavaScript30 6/30](https://www.youtube.com/watch?v=y4gZMJKAeWs\u0026list=PLu8EoSxDXHP6CGK4YVJhL_VWetA865GOH\u0026index=6).\n\n*** Note: to open web links in a new window use: _ctrl+click on link_**\n\n## :page_facing_up: Table of contents\n\n* [General info](#general-info)\n* [Screenshots](#screenshots)\n* [Technologies](#technologies)\n* [Setup](#setup)\n* [Features](#features)\n* [Status](#status)\n* [Inspiration](#inspiration)\n* [Contact](#contact)\n\n## :books: General info\n\n* Tutorial Code using javascript \u0026 AJAX to add suggestions when typing into text box. \n\n## :camera: Screenshots\n\n![Example screenshot](./img/ahead.png).\n\n## :signal_strength: Technologies\n\n* [Javascript v1.9 ECMA-262 ECMAScript 2018](http://www.ecma-international.org/publications/standards/Ecma-262.htm)\n* [jQuery slim CDN v3.3.1\"](https://code.jquery.com/)\n* [Bootstrap CDN v4.3.1](https://getbootstrap.com/docs/4.3/getting-started/introduction/)\n* [JSON endpoint list of cities with data.](https://gist.githubusercontent.com/Miserlou/c5cd8364bf9b2420bb29/raw/2bf258763cdddd704f8ffd3ea9a3e81d25e2c6f6/cities.json)\n\n## :floppy_disk: Setup\n\n* Open index.html in browser. If any code is changed the browser needs to be refreshed.\n\n## :computer: Code Examples\n\n* Function to match search string with city or state name.\n\n```javascript\nfunction findMatches(wordToMatch, cities) {\n  return cities.filter(place =\u003e {\n  \n    const regex = new RegExp(wordToMatch, 'gi');\n    return place.city.match(regex) || place.state.match(regex)\n  });\n}\n```\n\n## :cool: Features\n\n*  Function to add comas in population number. Latest versions of jQuery Slim, AJAX and Bootstrap used\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: N/A\n\n## :clap: Inspiration\n\n* Wes Bos Youtube Tutorial: [Ajax Type Ahead with fetch() - #JavaScript30 6/30](https://www.youtube.com/watch?v=y4gZMJKAeWs\u0026list=PLu8EoSxDXHP6CGK4YVJhL_VWetA865GOH\u0026index=6)\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://www.andrewbateman.org) - you are welcome to [send me a message](https://andrewbateman.org/contact)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fjavascript-ajax-typeahead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fjavascript-ajax-typeahead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fjavascript-ajax-typeahead/lists"}