Is there a difference between setting:
$.ajax({
type: "POST",
traditional: true,
url: '/adminTask/doAction',
async: false, <<<<<<<<<<<<<< HERE
data: parms,
dataType: "json",
success: function (data) {
$("#rdy_msg").text("Completed: " + id);
},
error: function () {
var cdefg = data;
}
});
and
$.ajaxSetup({
async: false
});
The reason I'm asking is because I recently posted a question, and one person mentioned for me to use ajaxSetup and set async: false. However, I thought it was already installed in the code above.
source
share