Thursday, March 22, 2012

Listbox & "Intellisense"

I want to create a listbox, or preferably a checkboxlist that is
populated from a database. There will be a textbox right above that the
user can start to type in a product name and the listbox (or
checkboxlist) will populate depending on their typing.

For example: They start to type Tu and the following populates:

Tualatin
Tumbler
Tunnel
Turkey
Turtle

Then if they added an 'r' to make the search string 'Tur' the following
populates:

Turkey
Turtle

How possible is this? Code snippets or articles/tutorials would be
greatly appreciated.That can be done with AJAX. Just Google for Ajax and your favorite
language, and you'll find all sorts of examples.

"Will Lastname" <wh00ph@.brinkster.net> wrote in message
news:1126645717.306828.293280@.g49g2000cwa.googlegr oups.com...
> I want to create a listbox, or preferably a checkboxlist that is
> populated from a database. There will be a textbox right above that the
> user can start to type in a product name and the listbox (or
> checkboxlist) will populate depending on their typing.
> For example: They start to type Tu and the following populates:
> Tualatin
> Tumbler
> Tunnel
> Turkey
> Turtle
> Then if they added an 'r' to make the search string 'Tur' the following
> populates:
> Turkey
> Turtle
> How possible is this? Code snippets or articles/tutorials would be
> greatly appreciated.

0 comments:

Post a Comment