.
- Ext.Ajax.on , . , . Ext.Ajax.on - , . . .
- batch.operations [0] .response.responseText can also be used, but this is an unreliable way to get a response, since the response object will not always be filled (depends on the request and whether there are exceptions, 404, 500, success: false, etc.)
Exposition
// This picked up my autocomplete comboboxes load - not what I wanted!
Ext.Ajax.on({
requestcomplete: {
fn: callback,
scope: this,
single: true
},
requestexecption: {
fn: callback,
scope: this,
single: true
}
});
Current solution
It still doesn't have the answer I'm looking for, but meh.
store.sync({
failure: function (batch, eOpts) {
// 'this' is the Ext.data.proxy.Ajax object
// or whatever proxy you are using
var data = this.getReader().jsonData,
raw_data = this.getReader().rawData;
}
});
I'm not sure how this handles my full stack of exceptions, but I will correct my post based on the server-side exceptions that I found (404, 500, etc.).
source
share