开发者

catch all ajax responses?

is there any way to catch all responses from an ajax request whether it is comin开发者_JAVA百科g from different libraries like jQuery, prototype or just the plain vanilla XMLHttpRequest object?

I'd like to be able to ADD to any handler that is already existing and not destroy any handler.

Thanks in advance.


I think each lib needs an own handler. With jQuery you can set global handlers: http://api.jquery.com/jQuery.ajaxSetup/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜