I've seen the official documentation here and I do not see that the default value is asynchronous or synchronous, I see no example how to use both (in the second code below).
I know this works:
$.ajax({
url: url,
async: false,
data: data,
success: success,
dataType: dataType
});
The following code does not exist async
?
$.get( "test.cgi", { name: "John", time: "2pm" } )
.done(function( data ) {
alert( "Data Loaded: " + data );
});
The second code does not know if the default value async
is as true
or false
.