Andrel
11 Sep 2010, 1:28 PM
Hi there,
on Ext.Ajax.request I can define a success and a failure callback function but on Ext.util.JSONP.request it seems I only have the callback which also only executes on success. So my question is, how can I catch an Error? Maybe when the URL is not available or (in case of having sencha compiled with phonegap) the Device ist offline.
When I try to set a request to a not existing URL the callback function seems not to be startet so I have no controll and am unable to display an error Message when this error appeares.
Thanks for your help and inspirations
greetings
Andre
on Ext.Ajax.request I can define a success and a failure callback function but on Ext.util.JSONP.request it seems I only have the callback which also only executes on success. So my question is, how can I catch an Error? Maybe when the URL is not available or (in case of having sencha compiled with phonegap) the Device ist offline.
When I try to set a request to a not existing URL the callback function seems not to be startet so I have no controll and am unable to display an error Message when this error appeares.
Thanks for your help and inspirations
greetings
Andre