开发者

catch all ajax responses?

开发者 https://www.devze.com 2023-02-08 04:23 出处:网络
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?

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

精彩评论

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