Hello All,
I'm using GeoExt 1.1 with a Ext.data.JsonStore and having problems catching
the exception event when the server returns a non-200 response. I
recognize that it's not strictly a GeoExt problem, but was hoping someone
here could help me anyway - hours of research have produced no success.
Here's the code:
var imageStore = new Ext.data.JsonStore({
root: 'geotiffs',
fields: ['value'],
baseParams: {
date: date
},
proxy:new Ext.data.ScriptTagProxy({
url:'http://devel.ngdc.noaa.gov/mapviewer-support/viirs_thailand/images',
listeners: {
//TODO not working
'exception': function(proxy, type, action, options, response) {
console.log('loading exception: ');
}
}
})
});
When the server returns a 404, an error is immediately printed in the
console, but the function above doesn't fire until the default timeout has
elapsed.
Can someone please help me?
Thanks!
--john
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users