ドキュメント

Ajax/ajaxStart

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Ajax

ajaxStart( callback )

Attach a function to be executed whenever an AJAX request begins and there is none already active. This is an Ajax Event.
Arguments:
callbackFunction
The function to execute.
function () {
  this; // dom element listening
}
Examples:

Show a loading message whenever an AJAX request starts (and none is already active).

 $("#loading").ajaxStart(function(){
   $(this).show();
 });

NameType