Filter drop down menu using key strokes 
Author Message
 Filter drop down menu using key strokes

Does anyone know if its possible to filter a large drop down menu (ie.
SELECT & OPTION tags), when a user starts pressing keys whilst in the combo
box.

For example, a select input form element with the following option tags

<SELECT name="fruit" size="1">
        <option>Apple</option>
        <option>Banana</option>
        <option>Orange</option>
        <option>Lemon</option>
        <option>Lime</option>
</select>

Obviously, the drop down box would have several more records than this, but
what i want is when a user hits the O key, the menu selection jumps to
Orange, but when a user types L then I, it jumps to Lime, rather than to
records beginning with I (not that there are any in my example)

If you see what I mean!

I could probably do this myself with a separate text box above the menu, but
its not particularly user friendly.

Any help is much appreciated.

Dan Williams



Sat, 02 Apr 2005 00:19:45 GMT  
 Filter drop down menu using key strokes
only the first letter is "selectable"
After that you need to custom build it. (it's a clientside thing, not ASP).
Look here as an idea

Typing in a SELECT Box:
http://www.darkfalz.com/1086/

--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------

Quote:
> Does anyone know if its possible to filter a large drop down menu (ie.
> SELECT & OPTION tags), when a user starts pressing keys whilst in the
combo
> box.

> For example, a select input form element with the following option tags

> <SELECT name="fruit" size="1">
>         <option>Apple</option>
>         <option>Banana</option>
>         <option>Orange</option>
>         <option>Lemon</option>
>         <option>Lime</option>
> </select>

> Obviously, the drop down box would have several more records than this,
but
> what i want is when a user hits the O key, the menu selection jumps to
> Orange, but when a user types L then I, it jumps to Lime, rather than to
> records beginning with I (not that there are any in my example)

> If you see what I mean!

> I could probably do this myself with a separate text box above the menu,
but
> its not particularly user friendly.

> Any help is much appreciated.

> Dan Williams



Sat, 02 Apr 2005 00:37:34 GMT  
 Filter drop down menu using key strokes
Dan

Sounds you're saying swapnode method or children collection. However, let's
say I'm an user. I typed 'l', and typed 'i' with the intention of going to
the item starting with 'i', then how can I do it?


Quote:
> Does anyone know if its possible to filter a large drop down menu (ie.
> SELECT & OPTION tags), when a user starts pressing keys whilst in the
combo
> box.

> For example, a select input form element with the following option tags

> <SELECT name="fruit" size="1">
>         <option>Apple</option>
>         <option>Banana</option>
>         <option>Orange</option>
>         <option>Lemon</option>
>         <option>Lime</option>
> </select>

> Obviously, the drop down box would have several more records than this,
but
> what i want is when a user hits the O key, the menu selection jumps to
> Orange, but when a user types L then I, it jumps to Lime, rather than to
> records beginning with I (not that there are any in my example)

> If you see what I mean!

> I could probably do this myself with a separate text box above the menu,
but
> its not particularly user friendly.

> Any help is much appreciated.

> Dan Williams



Sat, 02 Apr 2005 00:56:15 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Press F1 key while drop-down menu item highlighted, drop-down menu stays on top

2. how can i send the menu key as a key stroke

3. drop down box and down arrow key

4. Menu form and key stroke action

5. drop down menu

6. VBscript for Dynamic Drop down menus

7. Fill drop-down menu with elements of Dbase

8. Drop down menus

9. Drop Down Menus Change Depending On Selection?

10. Drop down menus

11. Drop down Menu

12. drop-down menu with 100 items

 

 
Powered by phpBB® Forum Software