|
|
Creating an Autosuggest Textbox with JavaScript, Part 1
|
03/05/2006 By Nicholas C. Zakas
|
In building the autosuggest textbox, you will JavaScript in a true object-oriented fashion. The main implementation consists of two types of objects: one to represent the autosuggest control and one that provides the suggestions (which I call a suggestion provider). The autosuggest control does the heavy lifting in the code by handling all of the user interaction with the textbox.
The suggestion provider is called by the control when suggestions are needed for the string in the textbox. In this way, it's possible to implement autosuggest functionality for more than one data set just by specifying a different suggestion provider. You could have one suggestion provider for colors, one for state names, and so on.
Read more...
|
Rate this Ajax Tutorials
Rating: 5.3 out of 4 votes cast
| |
|
|
|
|
|
|
|
|
|
|
|
|