Does the jQuery $.ajaxSetup method $.ajaxSetup the data field in parameter hashes when calling $.post or $.get ?
For example, I might have this code:
$.ajaxSetup({ data: { persist: true } });
Then, to send a POST request, I would call it:
$.post("/create/something", { name: "foo" });
I expected the actual POST data to look like this:
{ persist: true, name: "foo" }
but the only data sent by $.post is { name: "foo" } . Is there a way to get the expected behavior? I am using jQuery 1.4.1.
source share