Hi, My client wants to type instead of select from a list. But it''s not just a free typing but typing the first few letters. So basically, it''s auto-complete function except that the list data is already in the client as an array in JavaScript. Is there any plugin for such a function? If not, how would you implement it? Thanks. Sam -- Posted via http://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 -~----------~----~----~----~------~----~------~--~---
Sam, I am unaware of any plugins for this, maybe there is one someone. Fortunately though It is trivial to implement with the Scriptaculous library. Basically the syntax is new Autocompleter.Local(id_of_text_field, id_of_div_to_populate, array_of_strings, options); Take a look at the local autocompleter wiki, it has all the information you will need. http://github.com/madrobby/scriptaculous/wikis/autocompleter-local Cheers -- Robert Zotter Zapient, LLC Ruby on Rails Development and Consulting http://www.zapient.com http://www.fromjavatoruby.com On Nov 5, 9:03 am, Sam Kong <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, > > My client wants to type instead of select from a list. > But it''s not just a free typing but typing the first few letters. > So basically, it''s auto-complete function except that the list data is > already in the client as an array in JavaScript. > > Is there any plugin for such a function? > If not, how would you implement it? > > Thanks. > > Sam > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Typo ...maybe there is one someone --> ...maybe there is one somewhere. On Nov 5, 9:24 am, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote:> Sam, > I am unaware of any plugins for this, maybe there is one someone. > Fortunately though It is trivial to implement with the Scriptaculous > library. > > Basically the syntax is > new Autocompleter.Local(id_of_text_field, id_of_div_to_populate, > array_of_strings, options); > > Take a look at the local autocompleter wiki, it has all the > information you will need.http://github.com/madrobby/scriptaculous/wikis/autocompleter-local > > Cheers > > -- > Robert Zotter > Zapient, LLC > Ruby on Rails Development and Consulting > > http://www.zapient.comhttp://www.fromjavatoruby.com > > On Nov 5, 9:03 am, Sam Kong <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > Hi, > > > My client wants to type instead of select from a list. > > But it''s not just a free typing but typing the first few letters. > > So basically, it''s auto-complete function except that the list data is > > already in the client as an array in JavaScript. > > > Is there any plugin for such a function? > > If not, how would you implement it? > > > Thanks. > > > Sam > > -- > > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Robert Zotter wrote:> Take a look at the local autocompleter wiki, it has all the > information you will need. > http://github.com/madrobby/scriptaculous/wikis/autocompleter-localThank you very much. This is exactly what I was looking for. Sam -- Posted via http://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 -~----------~----~----~----~------~----~------~--~---