-
23 Oct 2012 9:45 PM #1
Sencha 2.0 Ext.Ajax.request failure not working on Android 4.1 + Phonegap
Sencha 2.0 Ext.Ajax.request failure not working on Android 4.1 + Phonegap
Here is my code:
If the server is not reachable the error get not catched by failure and phonegap throws an error which cause the app to exit. Only Android 4.1. Phonegap version: 2.1
Code:Ext.Ajax.request({ url: url, success: function(xhr) { if(xhr.status==200){ } }, failure: function() { console.log("server not reachable"); } });
-
24 Oct 2012 5:52 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
So phonegap captures a 404 or a timeout and the app exits/crashes?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote