Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Pretoria
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Dynamically sorted Dropdown combobox/listbox

    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

  • #2
    Dave Clark
    Guest
    This does not require ASP. See the following research page, of mine, for both of those features -- and more:

    http://www.DaveClarkConsulting.com/r...h/selects.html

    OK?

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Pretoria
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    not exactly...

    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

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,965
    Thanks
    0
    Thanked 236 Times in 233 Posts

    Re: not exactly...

    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...

  • #5
    Dave Clark
    Guest

    Re: not exactly...

    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. 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"... Use the Space Bar to reset what you've typed.

  • #6
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Pretoria
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ooops

    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

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dave's example is pretty much a definitive reference - and like he says, doesn't require ASP.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •