PDA

View Full Version : Help with store loadexception



dusoo
20 Jan 2011, 4:20 AM
Hi,

i have a simple store loaded from the php using XmlReader:


var store = new Ext.data.Store ({
url: 'store.php',
baseParams:{domain:'REPORT'},
reader: new Ext.data.XmlReader({record: 'ROW'},
[
{name: "pg", mapping:"PG"},
])
});

Is it possible to handle situation when store is not loaded (no xml is sent from php) ? (in all browsers...)
this works only in Firefox :


store.on('loadexception', function() {
alert('hi bad data details are ');
});

this works only in IE : (returns 0 for any xml problems)


store.on ('load', function(ds,records,o) {
alert(store.getCount());
});



Thanks a lot for ANY tips,
D.