I am in my second week trying to solve this problem in order to get a download message to display correctly: - (
Itβs just very difficult for me to get either a page, or create a page, or create an event to run the $ .mobile.showPageLoadingMsg () file.
Here is a link to an example on jsfiddle:
[http://jsfiddle.net/7fxQf/25/][1]
Note that jsFiddle is referencing the 1.0b3 mobile library.
Here is a sample base code snippet that should work, but not:
$('#mypageone').live('pagebeforecreate', function (event, ui) { alert('Just selected page one!'); //HEY!!! the page load never pops up :-( $.mobile.loadingMessage = "this msg set on live pageshow from mypageone..."; $.mobile.pageLoading(); $.mobile.showPageLoadingMsg(); calcLongList(); //simple list generation of a 1000 lines to screen //$.mobile.hidePageLoadingMsg(); });
I can get a warning, but unfortunately this is not a loading message when the page really loads.
... but, however, if you change only to "pagehow", a download message will appear, but, of course, after 5-10 seconds to generate a list: - (... this, of course, is not what I want.
Also, it doesn't matter if I comment out the calcLongList function or not ... the loaded msg page behaves the same: it works for 'pageshow' ... but not for 'pagebeforeshow' or 'pagebeforecreate' ... and I pull my hair trying to figure out what i can do wrong?
Any advice or recommendations will be appreciated, thanks in advance