Auto Suggest Box


Category:
Scripts
JavaScript
Requirements:
Seller:
Price:
-
System:
Rating:
4.7
License:

Description - Auto Suggest Box



This PaGE shows an example of my JavaScript Auto Suggest Box. It is a normal text input box which, using a custom javascript function, automatically suggest`s results as the user types. The Mark up is simple and can be seen by viewing the source of this page. However to use it you must provide it with two custom functions of your own, one that provides it with results based on the search text it gives and the second is the function for it to call when the user has selected a result. The function that creates the results gets passed a search string. It must go off to where ever it needs to retrieve results from and then return an array of objects. The objects can be named anything but must contain two members with the following specific names; id : The ID of a result item. text : Descriptive name of a result item. Then when a user selects one of the suggested results the function you Create for dealing with the result gets passed back both the id and text. You may pass custom variables into the onKeyUp event of the text input box, if you do then the arguments array of this function will be passed back to your second function as a third variable.



More in JavaScript-Auto Suggest Box

Result Item Auto Suggest Item Then When