View Full Version : Tapping a Ext.Button while in Airplane mode blackens screen

26 Jan 2011, 9:28 AM
I have a Panel in my Sencha Touch/ PhoneGap application which contains several buttons. Each button launches separate native iPhone apps via standard URL patterns. The handler function on the buttons performs the redirect by setting location.href to a specified URL.

This approach works perfectly when the app is online, but in Airplane mode or simply when the app has no available network, the button taps cause the Sencha screen to begin to turn black from the bottom up, maybe 20 pixels at a time.

Is there a better way to launch these URLs? Should I embed a form on the page and perform a submission? Will that cause a synchronous event that will switch to either Maps or MobileSafari?

Many thanks