[jQuery] formValues processing order

[jQuery] formValues processing order

formValues does not maintain the ordering of elements on the page. This
is a problem where elements which have the same name are processed on
the server-side as an array. If form layout order is not maintained then
the relationship between element arrays is lost.
Thus:
<form>
<input type="text" name="a" value="1">
<input type="text" name="b" value="2">
<input type="text" name="a" value="3">
<input type="text" name="b" value="4">
</form>
Server-side expects: a=1&b=2&a=3&b=4, which creates array elements:
a[1]=1, a[2]=2, b[1]=3, b[2]=4.
However, when the parameter list is not in form order we get something like:
a=1&b=4&a=2&b=2, which creates array elements: a[1]=1, a[2]=2, b[1]=4,
b[2]=2.
Is there any way to maintain ordering?
~ ~ Dave
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/