I am trying to update a div when a checkbox is checked. When this happens, the originating div redraws, forcing some unwanted behavior. To see what I mean, check out http://www.packhacker.com. Select "Submit" and you will get a packing list. Then, click on Activities to "roll up" a div. Then check a box - you will see what I mean. Any thoughts? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nikodim Lazarov
2008-Feb-10 20:10 UTC
Re: Why do my drop downs redraw when I update a different DIV
Hi, Try changing the event for the drop down to "onchange" not "onclick" and the best way to do this is through javascipt code, not inline inside the html element. Set an id for the drop down element and use Event.observe(element, "change", dosomething). Niko On Sun, 10 Feb 2008 22:01:41 +0200, tedster <jted.esler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I am trying to update a div when a checkbox is checked. When this > happens, the originating div redraws, forcing some unwanted behavior. > To see what I mean, check out http://www.packhacker.com. Select > "Submit" and you will get a packing list. Then, click on Activities > to "roll up" a div. Then check a box - you will see what I mean. > > Any thoughts? > >-- Best Regards, Nikodim Lazarov --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---