The jQuery ajaxStart event gets
fired when the first Ajax requests is initialed in a page, it does not fire when
every individual request starts but gets fired only when the first request is
fired in the page.
This event can be typically used to show / hide Loading.. Indicators in a page which has multiple Ajax request executing simultaneously.
The ajaxStart event handler can be used to show the Loading.. Indicator and the ajaxStop handler can be used to hide the Loading.. Indicator.
This event can be typically used to show / hide Loading.. Indicators in a page which has multiple Ajax request executing simultaneously.
The ajaxStart event handler can be used to show the Loading.. Indicator and the ajaxStop handler can be used to hide the Loading.. Indicator.
The syntax for the ajaxStart event
handler is as follows.
Example
$("#divLoading").ajaxStart(function(){
$(this).show();
});
$("#divLoading").ajaxStop(function(){
$("#divLoading").ajaxStop(function(){
$(this).hide();
});
Related Post
Related Post
jquery ajax Error Handling
jquery ajax Error Handling Example
jQuery Ajax request progress indicator events
jQuery Ajax request progress events Example
jquery ajaxStart
jquery ajaxStop
jquery ajaxComplete
jquery ajaxSuccess
jquery ajaxSuccess vs ajaxComplete
jquery ajaxStop vs ajaxComplete
jquery ajaxStop vs ajaxSuccess
jquery ajax Error Handling Example
jQuery Ajax request progress indicator events
jQuery Ajax request progress events Example
jquery ajaxStart
jquery ajaxStop
jquery ajaxComplete
jquery ajaxSuccess
jquery ajaxSuccess vs ajaxComplete
jquery ajaxStop vs ajaxComplete
jquery ajaxStop vs ajaxSuccess
No comments:
Post a Comment