Web Analytics Made Easy -
StatCounter Dynamically sorted Dropdown combobox/listbox - CodingForum

Announcement

Collapse
No announcement yet.

Dynamically sorted Dropdown combobox/listbox

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    This does not require ASP. See the following research page, of mine, for both of those features -- and more:



    OK?

    Comment


    • #3
      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

      Comment


      • #4
        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...
        Glenn
        vBulletin Mods That Rock!

        Comment


        • #5
          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.

          Comment


          • #6
            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

            Comment


            • #7
              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. ;)

              Comment

              Working...
              X