Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dogsghost/ajax-searching
demo using ajax to dynamically return search results as a user types in a search field
https://github.com/dogsghost/ajax-searching
Last synced: 1 day ago
JSON representation
demo using ajax to dynamically return search results as a user types in a search field
- Host: GitHub
- URL: https://github.com/dogsghost/ajax-searching
- Owner: dogsGhost
- Created: 2013-05-20T12:32:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-20T12:33:01.000Z (over 11 years ago)
- Last Synced: 2024-04-17T05:46:08.124Z (10 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Searching with AJAX
===================Simple demo of using AJAX to dynamically return a list of matches as a user types in a search field, then load in content when an option is selected.
While our data source (in this case a XML file) is small enough that we could simply make 1 request at page load and filter the information on the client-side as needed, this method doesn't scale well with larger datasets.
Note: No fallbacks are in place for addEventListener or XMLHttpRequest so this code will fail in IE < 9.