AutoCompleter without the AutoComplete

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

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