[Users] catching exception in ScriptTagProxy
John Cartwright - NOAA Federal
john.c.cartwright at noaa.gov
Wed May 29 06:33:57 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130528/5e22ec23/attachment.htm
More information about the Users
mailing list