...

Dynamically sorted Dropdown combobox/listbox

golum
07-10-2002, 09:13 AM
Hi,

I urgently need help, I have to develop a dynamically sorted dropdown for webpages, the details are as follows:

You have a list box or dropdown box on a page that is sorted alphabetically.
When the user types "T" it goes to the first item that begins with a "T".
When the user types "F" it goes to the first item that begins with an "F".
Give me a solution where the listbox or dropdown box will search incrementally, in other words search for the first word that begins with "TF..."
In other words a listbox or dropdown box that doesn't only search on the first letter of a word.

Hoping ne1 has any idea of how to solve this !

Cheers,
Golum

Dave Clark
07-10-2002, 01:27 PM
This does not require ASP. See the following research page, of mine, for both of those features -- and more:

http://www.DaveClarkConsulting.com/research/selects.html

OK? :)

golum
07-10-2002, 01:38 PM
I was talking bout a dropdown/listbox where a user "types" in a selection and not just clicks on it....

I sincerely hope u have that solution as well,
thanx anyway,
Cheers :)

glenngv
07-11-2002, 02:30 AM
The best that you can do is have a textbox where the user would type and as the user types, the dropdown list is regenerated based on the letters typed on the textbox. Just like the Index tab on Help...

Dave Clark
07-11-2002, 02:53 AM
Originally posted by golum
I was talking bout a dropdown/listbox where a user "types" in a selection and not just clicks on it....

You didn't even try it. :p Click on the Sort option, then click on the first option in the selection box (this is just to return the focus to the SELECT box). Then type "j", "u", "n"... :D Use the Space Bar to reset what you've typed.

golum
07-11-2002, 01:57 PM
Yup, my mistake, I got what I needed :)
Thanx Dave....

Btw, if u put in a timer for resetting instead of a space bar, its more effective...i.e., if no key is pressed for 2 seconds, reset the search comparison string...

Once again,
Thanx

whammy
07-12-2002, 03:11 AM
Dave's example is pretty much a definitive reference - and like he says, doesn't require ASP. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum