ドキュメント

Ajax/ajaxComplete

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Ajax

ajaxComplete( callback )

Attach a function to be executed whenever an AJAX request completes. This is an Ajax Event.
The XMLHttpRequest and settings used for that request are passed as arguments to the callback.
Arguments:
callbackFunction
The function to execute.
function (event, XMLHttpRequest, ajaxOptions) {
  this; // dom element listening
}
Examples:

Show a message when an AJAX request completes.

 $("#msg").ajaxComplete(function(event,request, settings){
   $(this).append("<li>Request Complete.</li>");
 });

NameType