ajaxResponse global event

ajaxResponse global event


Currently, there are some global ajax events - ajaxSuccess, ajaxError,
ajaxComplete which are called _after_ local callbacks.
1. It would be nice to have another one callback which is called
_before_ local callbacks, but after the request is performed.
This way it could be possible to filter out some common parts of a
response (such as error messages, sql queries etc) so local callbacks
wouldn't have to know anything about that.
2. this callback should be able to stop all farther processing by
returning false (in case if i receive an error message instead of
apporiate data for local callback).
3. It should be applied to both 'success' and 'error' statuses.
4. It should be called regardless 'global' option, always or with some
another option.