I''m having problems serializing a form. I''ve narrowed the problem down so that if I break in Prototype''s getElements function, and trace into the $A that makes an array of the return of $(form).getElementsByTagName("*"), the iterator doesn''t contain any elements. However, looking at the form variable in FireBug shows all the elements I''d expect to be there. I''m executing the getElements from within an onChange handler on a SELECT element in Firefox 2 if it''s important. I was originally trying to update my containing DIV using the item selection via an AJAX request, but couldn''t get it working because of the above. Anyone have any pointers? I''m pretty new to this. Thanks John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Interesting update - I''ve just tried this in IE6 and the form serializes OK, so why am I getting different behaviour from Firefox 2? On Oct 3, 7:35 pm, JF <jwfran...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m having problems serializing a form. > > I''ve narrowed the problem down so that if I break in Prototype''s > getElements function, and trace into the $A that makes an array of the > return of $(form).getElementsByTagName("*"), the iterator doesn''t > contain any elements. However, looking at the form variable in FireBug > shows all the elements I''d expect to be there. > > I''m executing the getElements from within an onChange handler on a > SELECT element in Firefox 2 if it''s important. I was originally trying > to update my containing DIV using the item selection via an AJAX > request, but couldn''t get it working because of the above. > > Anyone have any pointers? I''m pretty new to this. > > Thanks > John--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- semi-nube help request
- rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
- Problem with Prototype 1.6.0.2, Opera 9 and Form.serialize()
- Form.serialize(this) returning empty string in onSubmit, Ajax.Update context, works in Firebug watch
- immediate Descendants not working in IE