I believe the dataFilter callback (http://docs.jquery.com/Ajax/ jQuery.ajax#options) would likely be flexible enough to achieve what you're looking for.
You could certainly set yours as a default in jQuery.ajaxSetup() On Feb 23, 4:51 am, kuindji <[email protected]> wrote: > 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
