I have a dashboard where i will call multiple ajax calls in a for loop by only changing the values in the POST data's using the same requesting URL.
The issue is when i first loads the dashboard, where i made multiple ajax calls, when i click for next page - the next page is loaded only after all the dashboard ajax calls are made and success.
In below code i used only simple ajax, i am changing only the POST data in for loop.
$.ajax({
type: "POST",
url: "dashboards.php",
data: {type: typeVal, params: paramsVal },
success: function(data){
console.log('success');
console.log(data);
},
error: function(){
console.log('error');
}
});
Please suggests if any alternative way available for this process be done. Thanks in Advance, Kumar.