Say suppose there is my ajax call which call my PHP
function to get some result.
$('.ui-loader').show();
$.ajax({
url: BASE_URL +'some_page.php',
type: 'POST',
datatype: 'json',
async:false,
success: function (response) {
// response will get my result from "somepage.php"
$('.ui-loader').hide();
},
error: function (jqXHR, textStatus, errorThrown) {
//alert(jqXHR.status);
}
});
How can I show a another loader which is stating that "Sorry it is taking time please wait"
when ajax response taking time to get the result?
I come across ajaxStart() and ajaxStop() but how can I use here? Can you guys please guide me to achieve this thing.
Note : $('.ui-loader').show();
is a simple loader I want to hide this loader and show another which is stating "Sorry it is taking time please wait".
Thanks in advance.