Mike Alsup schrieb: >> Of couse it would be an ugly API change. If that stuff is integrated >> into $.ajax, we could savely deprecate $.get and $.post. >> > > Perhaps interrogating the type would work? > > if (typeof data != 'string') > data = jQuery.param(data) > Yeah, that should be pretty safe. If someone has already converted the data, it must be in string format anyway to work.
While we are at it: A get request can send it's data only by appending the query string to the URL, right? Can this be handled by $.ajax, too? I'll try to log this discussion here http://jquery.com/dev/bugs/bug/378/ and here http://jquery.com/dev/bugs/bug/377/ -- Jörn Zaefferer http://bassistance.de _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/