AJAX Autocomplete Final Words
Is it the best AJAX autocomplete ?
Of course not ! There is large scope of improvement. It could be modified for more than one text box. OOPS and event binding too can be done of which I am ignorant now. I have tested it in latest version of Internet Explorer, Chrome and Firefox browser. Browser compatibility needs to be improved.
AJAX Calls too can be made using any framework. I avoid such framework simply because of the file size, same reason why I do not use Jquery for autocomplete. You are in more control when you know what and where to change as per your requirement.
One word of caution is that my AJAX script had a line which forms the base of this scriptfunction $(id){return document.getElementById(id)}This function simply returns the element with the specified Id. This is used in almost all framework and is the soul of DHTML. So if you are getting JS error "ReferenceError: $ is not defined" then it means you need to add the said code to your javascript files.
Your reply and suggestions are welcome.
-
YOU MAY ALSO LIKE
- AJAX Autocomplete Tutorial
- Autocomplete Basic Idea
For an autocomplete, the form generally displays an empty text-box. As the user types something, an options open below the text-box with the suggestion. Th ... - What is Autocomplete ?
Autocomplete is used by most of the websites and you may have already used it in Google or Facebook. Google and Facebook use it in their search box. Facebo ...
