Open individual
2007-Oct-22 11:02 UTC
Strange scroll behavior of Auto Complete inside Active Scaffold.
Hi Everyone. After a long weekend of testing some stuff out I finally got the auto suggest working. I have got a problem however in both IE and Firefox as the drop down scrolls the page down to the element only when the up arrow is pressed. Here is a detailed example. When I have <%= text_field_with_auto_complete :product, :colour %> in my product _form.rhtml override... ... and in my product controller I have auto_complete_for :product, :colour This gives the desired drop down. (save and edit transactions not working just yet but can easily be resolved) My problem then is this. The user selects either create / edit product and browsers down to the colour text field and types "vio" for example and then magic stuff the auto suggest below displays "daytona violet", "violet", "dark violet" ... This is simply magic. So the user presses the down arrow on his keyboard and arrives at "dark violet" but then presses up because he rather wants "daytona violet" only to find that upon pressing the up arrow on their keyboard the page scrolls down to that element. This is my only problem at the moment. The rest I have cracked (Save and Edit buttons) working aswell. Can anyone resolve this? This is a must have for 99% of the applications using Active Scaffold to speed up and aid in data entry. Can any of the members or gurus out there tell me why this is happening and how to resolve it? I have been stuck on this for a week. Regards Uncle Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sam
2007-Nov-09 00:09 UTC
Re: Strange scroll behavior of Auto Complete inside Active Scaffold.
How did you get the saving to work? I am trying to do the same thing as you. Do you have a full example? On Oct 22, 4:02 am, Open individual <michaelschwa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Everyone. > > After a long weekend of testing some stuff out I finally got the auto > suggest working. > > I have got a problem however in both IE and Firefox as the drop down > scrolls the page down to the element only when the up arrow is > pressed. > > Here is a detailed example. > > When I have > > <%= text_field_with_auto_complete :product, :colour %> > > in my product _form.rhtml override... > ... and in my product controller I have > > auto_complete_for :product, :colour > > This gives the desired drop down. (save and edit transactions not > working just yet but can easily be resolved) > > My problem then is this. > > The user selects either create / edit product > and browsers down to the colour text field and types "vio" for example > and then magic stuff the auto suggest below displays "daytona violet", > "violet", "dark violet" ... > This is simply magic. > So the user presses the down arrow on his keyboard and arrives at > "dark violet" but then presses up because he rather wants "daytona > violet" only to find that upon pressing the up arrow on their keyboard > the page scrolls down to that element. > > This is my only problem at the moment. > > The rest I have cracked (Save and Edit buttons) working aswell. > > Can anyone resolve this? > > This is a must have for 99% of the applications using Active Scaffold > to speed up and aid in data entry. > > Can any of the members or gurus out there tell me why this is > happening and how to resolve it? > > I have been stuck on this for a week. > > Regards > Uncle Mike--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Open individual
2007-Nov-14 07:35 UTC
Re: Strange scroll behavior of Auto Complete inside Active Scaffold.
The save as I found out is not working properly for me. But that is not my issue at the moment. What I really want to get working is the scroll into view on IE. EG when the user presses the up or down arrow in a scrollable autocomplete then the new values must come into view without scrolling the whole page. Has anyone in the entire world solved this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---