I'm sure this has been covered before, but here goes...
Anybody noticing some odd behavior with submitting forms
through
Ajax.Request? I thought at first it was a problem with
Form.serialize,
but was able to trace it back to line #975 (in prototype
1.5.1_rc2)
which calls "toQueryParams" on the parameters that
are passed into the
new Ajax object if it is a string. This is the code (line
#975 is the
second line):
if (typeof this.options.parameters == 'string')
this.options.parameters =
this.options.parameters.toQueryParams();
A quick example could be seen by running the following in
Firebug:
"foo=bar&apple=&orange=".toQueryParams()
The apple and orange parameters are left off due to being
empty. In
terms of forms and empty fields (which should trigger
validation
errors), this seems like a huge problem.
Is my version of prototype just out-of-date or is there a
fix for this
in the foreseeable future? I know I can extend/override to
fix this
behavior. I'm not looking for a fix, just wondering if
anybody else
has seen this.
-justin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|