jQuery Mobile 1.4 Aplha 2 Panel

Error: cannot call methods on panel prior to initialization; attempted to call method ‘open’ Now we can use the panel widget outside of a page. But be aware, you now need to manually start the panel, or you will get the above error message. Do so like this: $(‘#main-panel’).panel(); Note: I also had to create […]

Double back button tap to exit. Android. jQuery Mobile.

  document.addEventListener(“backbutton”, function() { if ( $(‘.ui-page-active’).attr(‘id’) == ‘home’) { navigator.notification.confirm( ‘Press back again to exit’ , function(button) { if (button == 2 || button == 0) { navigator.app.exitApp(); } } , ‘Exit App?’ , [‘No way’, ‘Exit’] ); return false; } else { history.back(); } }, false);