Dave, I have no idea how many people are serializing complex data
structures into query strings for client-server interactions, but I
see [] in forms all the time (or in #jquery, completely fail to see []
in forms, when we're trying to help a newbie troubleshoot).

Still, this is something I've been using in jQuery BBQ entirely on the
client-side. When people ask, I do recommend that they use JSON, but
it's nice to have the ability in jQuery 1.4 to represent a somewhat
more robust data structure, cross-browser, without requiring any
extra .js files.

And despite the relative weaknesses of request params parsing, the
real benefit here is that the same method that currently works for
passing form data can be made to use for XHR, without needing anything
fancy on the server-side to handle different cases, which makes
progressive enhancement type stuff easier.

- Ben

On Dec 22, 11:23 am, Dave Methvin <dave.meth...@gmail.com> wrote:
> That helps a lot. It does seem to make sense to put the flag in
> ajaxSettings, which also keeps it out of the main jQuery namespace. My
> preference would be to avoid changing the behavior from 1.3==>1.4 by
> having traditional:true by default.
>
> Independent of PHP-compatible param naming, which I think is
> definitely useful, does any code currently use or need the ability to
> create nested complex objects in a query string? It seems like this is
> inventing a new JSON-like serialization mechanism when it might be
> better to encourage JSON use instead. There is good JSON support on
> just about all platforms, whereas we're grappling with the issues here
> of how to deal with traditional vs non-traditional params in a
> coherent way and the paint on this isn't dry yet.

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.


Reply via email to