Is blockUI.js will work synchronous Ajax calls ? (i.e async : false)
Is blockui will work if I call an ajax call with async:false property?
Example:
$.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' });
$.ajax({
type: "POST",
cache: false,
async: false,
url: Util.func.GetHostName("Public/GetStatesById"),
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ CountryId: id }),
dataType: "json",
success: function (data) {
$.unblockUI();
},
failure: function (data) {
$.unblockUI();
Util.func.ShowErrorMessage(Registration.constants.ErrorMessages.ERROR);
}
});