PDA

View Full Version : Handle all AJAX responses



rymoore
1 Apr 2008, 11:53 AM
I would like to be able to inspect all AJAX responses that I get from my server and inspect these responses for the presence of a certain property, called "RedirectURL". I want to be able to not only check calls to Ext.Ajax.requests, but also Ext.data.Store requests, etc.

Is this somehow possible?

Thanks

Animal
1 Apr 2008, 12:11 PM
http://extjs.com/deploy/dev/docs/?class=Function&member=createInterceptor

on Ext.data.connection.handleResponse : function(response){

You can then fiddle with the XHR in the parameter before it is passed on.

hendricd
1 Apr 2008, 1:35 PM
The ext-basex (enhanced Ext adapter) has what your looking for. See my signature below for the link.