Publisher review:Auto Suggest Box script automatically suggests results as the user types text in a normal text input box . It is a normal text input box which, using a custom javascript function, automatically suggests 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.
Auto Suggest Box is a JavaScript script for Forms and Controls scripts design by Tom Coote.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
automatically suggests results as the user types text in a normal text input box .
Operating system:Windows / Linux / Mac OS / BSD / Solaris