On Aug 3, 2007, at 4:24 AM, Pablo Impallari wrote:

>
> Hi All:
> I have a very large user table, more than 2.000, so i cant use a
> <select> to present the users list any more.
> I replace the <select> with a <input> using Ajax.Autocompleter
>
> If we type "john" or "peter" we still get a very long list, so the
> list shows the scroll bar, and its ok.
> The problem is that when we try to scroll, the list fades out.
>
> It happends on IE and Safari, but not in firefox
> Any ideas to fix it?
>
>
In your server-side code, you could limit the number of results from 
your query to something which would fit on the screen, maybe 20 or so.

Another thing to try is to take a look at the autocompleter parameters. 
There is one which allows you to tokenize the completion (split the 
lookup on word spaces or commas or whatever). So if you typed 'smith', 
and didn't see the name you want listed, you could continue on to type 
'smith t' and find Tom Smith.

If you do the former, it's important to add some explanation to the 
results, like "Only the first 20 matches will be shown" or similar.

Walter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to