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/
精彩评论