Ext.override(Ext.data.proxy.Server, {
constructor: function (config) {
this.callOverridden([config]);
this.addListener("exception", callbackfunction);
}
});
/*
* Global handler for when an Ajax request returns a failure code.
* Runs before the Ext.Ajax.request.faulure event runs.
*/
Ext.Ajax.on('requestexception', callbackfunction, this);
/*
* Global handler for when an Ajax request completes successfully.
* Runs before the Ext.Ajax.request.success event runs.
* Shows any enclosed message texts.
*/
Ext.Ajax.on('requestcomplete', callbackfunction, this);