The Ext js library has what you need. Look for the Combo Box.
http://extjs.com
But the regular HTML Select Box (in Firefox, at least) acts just the
way you want, you just need to type fast. I agree it is not very good,
though.
Cheers,
Bernardo
On Jul 12, 2:15 am, David Modernfossil <rails-mailing-l...@andreas-
s.net> wrote:> I''m trying to build a mix between the autocomplete and a normal
drop
> down. A
>
> I''m trying to build a drop down that allows the user to type in
desired
> selection. Normal drop downs simply go to the first occurrence of the
> words that start with the typed letter.
>
> For example if we had a list of states (only showing A''s and
M''s here -
> see below). And I typed "M" the drop down would select Maine -
the
> first occurrence of the letter "M" words. If I typed in the
letter "A"
> after the letter "M" the drop down would then select Alabama -
the first
> occurrence of the letter "A" words.
>
> I am looking for a solution that would select Maine after I typed in
"M"
> and then "A". To continue the example if I typed in
"R" following these
> letters it would select Maryland.
>
> Autocomplete is not quite what I need because I don''t want the
user to
> have quite as much freedom to type whatever they want. They should only
> be able to select something inside the drop down, but I want them to be
> able to find there selection by typing in more than just the first word.
>
> Alabama
> Alaska
> Arizona
> Arkansas
> ...
> ...
> Maine
> Maryland
> Massachusetts
> Michigan
> Minnesota
> Mississippi
> Missouri
> Montana
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---