Tags » JQuery Mobile

Document.Ready Function in Jquery Mobile

If you are using jquery mobile in your project then avoid using default jquery document ready function and use jquery mobile’s document ready function, although they mentioned this in jquery mobile docs, but many people may unaware of this… 27 more words

Intialization

Back button handler in jQuery Mobile & PhoneGap

var pageHistoryCount = 0;
var goingBack = false;

$(document).bind("pageshow", function(e, data) {
    if (goingBack) {
        goingBack = false;
    } else {
        pageHistoryCount++;
        console.log("Showing page #"+pageHistoryCount);
    }
});

function exitApp() {
    console.log("Exiting app");
    navigator.app.exitApp();
}

function onPressBack(e) {
    e.preventDefault();
    if(pageHistoryCount > 0) pageHistoryCount--;
    if (pageHistoryCount == 0) {

        navigator.notification.confirm("Are you sure you want to quit?", function(result){
            if(result == 2){
                exitApp();
            }else{
                pageHistoryCount++;
            }
        }, 'Quit My App', 'Cancel,Ok');
    } else {
        goingBack = true;
        console.log("Going back to page #"+pageHistoryCount);
        window.history.back();
    }
}

function deviceready() {
    $(document).bind('backbutton', onPressBack);
}
$(document).bind('deviceready', deviceready);
Development

jQuery Mobile Training Course in Hyderabad India UK

jQuery Mobile Training Online

jQuery Mobile Training Course Duration: 25-35hrs jQuery Mobile Training Course Fee: $ jQuery Mobile Training Pre-Requisites: 
JQuery Course Contents

Add an Exit Menu to Mobile app built in PhoneGap and jQuery Mobile

To add an exit menu when the back button is pressed is very straight forward, all we need to  do is to add a listener for the “ 100 more words

Development

Opening hours tiny project using jquery mobile

In this project i read data from xml file and put him in table,
i use jquery mobile to do that.

the files on Bitbucket: 6 more words

כללי