开发者

What event fires when an AJAX request is sent?

What handler should I use to catch the moment when an AJAX request has just been sent to the server withi开发者_StackOverflow社区n document.ready?


I think you're looking for .ajaxComplete().

$('#el').ajaxComplete(function() {
    …
});

Edit

Try this:

$(window).ajaxComplete(function() {
    …
});

Note: these only work if the AJAX request was sent with jQuery.


You might be looking for .ajaxSend() or .ajaxStart() Jquery AJAX events

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜