Hi all !
I just updated to Rails Edge, and found a strange error. I have an
anchor element which does a simple submit and update. The anchor's
onclick code is this:
new
Ajax.Request('http://wpul.staging.teksol.info:5789/admin/parties/phone/new',
{asynchronous:true, evalScripts:true,
parameters:Form.serialize('phones_head')}); return false;
The error occurs on the call to Form.serialize('phones_head'). The
specific error I get is: "$(form).getElements is not a function" on
line 1755 of prototype.js.
line 1753 and on:
Form.Methods = {
serialize: function(form) {
return Form.serializeElements($(form).getElements());
},
}
If I replace the return statement with this one:
return Form.Methods.getElements(form);
Then I can get my form working again. This is on Firefox 2.0, Windows
XP SP2, Rails 1.2 RC1 (r5639).
Am I doing something wrong ?
--
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---