PDA

View Full Version : How to break out of loading mask?



profunctional
19 Jan 2011, 1:20 PM
Due to the nature of an ajax request, sometimes the loading mask can just sit their indefinitely due to a network issue or timeout. I set my loading animation using the method setLoading.

Before porting it over to phone gap, anytime the app got stuck I'd simply refresh the browser. Now that its native, there doesn't seem to be a way to break out of the loading mask/animation.

How should I handle this? It isn't reasonable to ask the user to kill the app and restart. There should be a way to cancel out of the request and try again.

Any ideas?

mitchellsimoens
19 Jan 2011, 4:58 PM
there is an abort() method on Ajax requests. At least that's what the Docs say.