> On 11/1/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>>
>> Aaron, not if you pass in data as a second argument:
>>
>> $("#feeds").load("feeds.html", {test: true});
>>
>
> I'm having a little trouble understanding why you want to even do a POST
> using load() when query variables would do just fine. An example would be
> greatly appreciated.
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

A couple of points come to mind:

* Suppose the URL already has a query string and you want to add a few
more arguments... Better to let jQuery deal with the parsing and deciding
how to send it.
* Same argument but this time you want the variable names in the query to
have any character in their name. Better to let jQuery deal with the
parsing and escaping.
* I think jQuery probably also handles arrays of values, again much easier
to pass in a hash and let jQuery deal with it.

There's probably also other points that I didnt think of :)

--Jacob



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to