JavaScript:
$(document).on('change', '#dropdownSelector', function() {
//some code
ajaxchangeHandler()
});
function ajaxchangeHandler(){
// this will take 30 seconds
$.ajax({
url: ajax1Url1,
type: "POST",
data: postData,
dataType: "json",
async:true,
success: function (data) {})}
}
$('#button2').click(){
//this waits until ajax1Url1 completes. why ?????
$.ajax({
url: ajaxUrl2,
type: "POST",
data: postData,
dataType: "json",
async:true,
success: function (data) {})}
}
}
#button2 ajax call eka block wenne nathi widihata hdaganne kohomada ?
sorry guys
backend case ekak
https://stackoverflow.com/questions/21076970/one-ajax-call-block-other-ajax-call
Last edited: