PDA

View Full Version : 1.0.1 Abort scripttag Load



squarefan
22 Apr 2011, 10:37 AM
Hi,

I am trying to cancel the load and subsequent success/failure operation of a scripttag proxy/datastore. Unfortunately I cannot get the standard samples to work with the store and the data and success/failure functions are still loaded and fired.

here is my datastore:



store= new Ext.data.Store({
model: 'Main',
autoLoad: false,
proxy: {
type: 'scripttag',
autoAbort: true,
url: serverurl,
extraParams: {filters: [] }, // filters fix for Touch 1.0.1
reader: {
type: 'json',
root: 'root'
}
}
});


The standard abort function with: Ext.Ajax.abort(store.proxy.activeRequest);
doesnt work in this case and the store is loaded even though I tried to cancel the operation... Do I have to change something in the configuration of the store?

Thank you in advance!

cheers,
Alex