Here is the code:
$.ajax({
url: "script.php",
success : oneHandler
});
$.ajax({
url: "script.php",
success : twoHandler
});
When calling these two function calls concurrently is it ensured that “oneHandler” is really called on the response of the first call?
In other words, is the appended string checked for match?
What if I add data:
dataType: 'json',
data: {"json": "one"} ,
dataType: 'json',
data: {"json": "two"} ,
respectively?
What if I use the post method?
Yes
Doesn’t matter. It’s guaranteed to call a correct callback