View Full Version : JSONP Request - how to catch error?

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



11 Sep 2010, 9:51 PM
Currently there's no way to do it, but we'll likely add in functionality to allow for this.

20 Jun 2011, 1:35 AM

can I now catch an error of a jsonp request??