control responding for clicking keys

  • Thread starter Thread starter Dariusz Tomon
  • Start date Start date
D

Dariusz Tomon

Hello

I'm looking for a solution for my project. All I want is to have a textbox
control which can respond for pressing keys. The other control will be
dropdownlist which will be retrieving data from database with "where"
condition based on what is typed in the first control.

Example: There will be string "Wa" in textbox. When first pressing "W" ->
corresponding dropdownlist will show list of cities starting with "W", then
when user press "a" (String will be "Wa") - list of cities will be shorten
to cities starting with "Wa" and so on....

Maybe there is a better solution - please advice me and reffer me to
appropriate web address to download/read abou the solution.


Best Regards

Darek
 
Hello

I'm looking for a solution for my project. All I want is to have a textbox
control which can respond for pressing keys. The other control will be
dropdownlist which will be retrieving data from database with "where"
condition based on what is typed in the first control.

Example: There will be string "Wa" in textbox. When first pressing "W" ->
corresponding dropdownlist will show list of cities starting with "W", then
when user press "a" (String will be "Wa") - list of cities will be shorten
to cities starting with "Wa" and so on....

Maybe there is a better solution - please advice me and reffer me to
appropriate web address to download/read abou the solution.


Best Regards

Darek

The textbox is running in the client browser. That means that only
javascript can handle the keypresses. Look into Atlas or another
implementation of AJAX. I think that Atlas specifically has an
autocomplete implementation of a textbox.

Autocomplete seems to me a better way of dealing with this than a
separate listbox if the idea is just to complete the entry in the
textbox.
 
Back
Top