It seems the serialize method on the form only serializes first occurance of
a collection of submit buttons. So if you have:
<form id="test-form">
<input type="submit" name="first" value="First"/>
<input type="submit" name="second" value="Second"/>
<input type="submit" name="third" value="Third"/>
</form>
and you observe:
Element.observe($('test-form'), 'submit', function(e) {
var obj = e.serialize(true);
}.bindAsEventListener());
obj will contain the property "first", not "second", and not "third". I
would expect one of the following cases:
1) each submit button name and value in the obj
2) the clicked submit button name and value, so clicking on "second" would
yield the property "second" in obj
and not
3) first input submit type get serialized ignoring all other submit buttons
2 above is ideal, but the described that behavior (3) above seems absolutely
wrong. Am I doing something wrong? Is this a doctype issue?
Karl..
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.