Hi I''ve written a system which requires the entry of lots of customers. Trusting this to an OAP (I know!!!!) it appears that I now have lots of duplicate customers .. which is going to cause issues. I know I can use the validate clauses in the model when it saves, but want something a little bit better than this. I would like it that when I type the first three letters of a forename into a text field, a DIV somewhere on the page updates with the records it retrieves from the Customers Database matching the names. A bit like the Ajax.Autocompleter but without the autocomplete thing. I just want it to query the database and list the results - but dynamically so the more letters I type, the more refined the list becomes. I''ve tried playing around with various things, but nothing seems to be working. Any ideas would be appreciated. Thanks Darren -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Curtis Jennings Schofield
2009-Dec-30 00:11 UTC
Re: AutoCompleter without the AutoComplete
I did that exact thing with the way that autocomplete works - except each key is a new get. The response was a set of li elements. On Tue, Dec 29, 2009 at 5:01 PM, Ruby on Rails: Talk <dazzaroonie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > > I''ve written a system which requires the entry of lots of customers. > > Trusting this to an OAP (I know!!!!) it appears that I now have lots > of duplicate customers .. which is going to cause issues. > > I know I can use the validate clauses in the model when it saves, but > want something a little bit better than this. > > I would like it that when I type the first three letters of a forename > into a text field, a DIV somewhere on the page updates with the > records it retrieves from the Customers Database matching the names. A > bit like the Ajax.Autocompleter but without the autocomplete thing. I > just want it to query the database and list the results - but > dynamically so the more letters I type, the more refined the list > becomes. > > I''ve tried playing around with various things, but nothing seems to be > working. > > Any ideas would be appreciated. > > Thanks > Darren > > -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.