30 Dec 2012 5:28 AM #1
Unanswered: Webservice calls stuck up - network unavailability
am developing mobile solution using sencha touch 1.1. the app is designed to work in offline mode as well. am facing an issue in the webservice calls when the network goes down before i get the response from the webservice. say for example i have initiated 5 different webservice calls ,before i get response from those calls if network goes down, the app gets stuck up ( i mean its showing inprogress message only). i have used document.addeventlistner("offline") handler as well to detect the network unavailability. But that method is also not getting called in the above mentioned scenario.Otherwise this handler works fine.
could you pls clarify , whether the web service failure handler will be called or not during sudden network drop? or what could be the way to handle this.
1 Jan 2013 11:25 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You need to handle failures on Ajax requests or store loadsMitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.