Pablo Impallari
2007-Aug-03 08:24 UTC
Ajax.Autocompleter fadeoff when scrolling the list in IE and Safari
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? I´m using scriptaculous 1.7.1 beta3 + protoype 1.5.1.1 Sorry about my little english, im from Argentina :) --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Walter Lee Davis
2007-Aug-03 15:46 UTC
Re: Ajax.Autocompleter fadeoff when scrolling the list in IE and Safari
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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Pablo Impallari
2007-Aug-03 18:03 UTC
Re: Ajax.Autocompleter fadeoff when scrolling the list in IE and Safari
Hi Walter, thanks for your reply. I know I can limit the result and tokenize results. I have already done that. But I still want to fix the precise problem of the list fading out on scrolling. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Pablo Impallari
2007-Aug-08 09:32 UTC
Re: Ajax.Autocompleter fadeoff when scrolling the list in IE and Safari
No one has a fix for that? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---