I am using JQuery’s autocomplete plugin, but it is not fast and also it’s not that relevant to my site. I want an autocomplete like the http://www.hotels.com. How can I achieve this type of autocomplete? Are there plugins for it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hotels.com uses a custom JSON request/response. If you open up firebug you’ll see the outgoing call:
Search for “London”
This call is fired immediately on keyup, and returns JSON data:
Response from Hotels.com
There’s nothing particularly fancy going on otherwise, just a high powered server with an accurate database search. There’s no autocomplete happening in Javascript though.