Use $.mobile.showPageLoadingMsg() and $.mobile.hidePageLoadingMsg() to show and hide the loading message pop up from code
//Show the loading message then hide it after 3 seconds
$.mobile.showPageLoadingMsg();
setTimeout(function() {
$.mobile.hidePageLoadingMsg();
}, 3000);
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.