link to launch the web app http://binghuan.github.io/javascript_simpleAutoComplete/autoComplete.html
link for this page.
an auto-complete widget on a text <input> with the following requirements:
Implement an auto-complete widget on a text with the.
following requirements:
-- Avoid using well-known UI libraries.
-- The dataset should contains around 100~1000 entries. Timezone names
in tzdata [1] is a good example, but you don't need to load the JSON
example [2] as-is.
-- User should be blocked from submit the input unless the input
matches one of the entries.
-- The whole thing should work when loading from http://localhost/ or
file:/// url, without server-side (e.g. PHP) logic.
-- Please take care of memory consumption and efficiency.
-- Consider making your code unit-testable and reusable.
- [1] https://en.wikipedia.org/wiki/Tzdata
- [2] https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/tz.json
################## If you are interested in my works, please have a visit to my blog. http://studiobinghuan.blogspot.tw/ and http://bhtalk.blogspot.com
Coding quest from Mozilla.