Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Mobile - Problems getting showPageLoadingMsg to work with pagebeforeshow or pagebeforeceate
    text
    copied!<p>I'm on my second week of trying to resolve this issue of getting a load message to properly display :-(</p> <p>I'm just having a very tough time getting either the pagebeforecreate or the pagebeforeshow events to fire the $.mobile.showPageLoadingMsg(). </p> <p>Here's a link to example on jsfiddle:</p> <pre><code> [http://jsfiddle.net/7fxQf/25/][1] </code></pre> <p>Note the jsFiddle is referencing the mobile 1.0b3 library.</p> <p>Here's sample of the basic code snippet that should work, but does not:</p> <pre><code>$('#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(); }); </code></pre> <p>I can get the alert to fire, but sadly not the load message, when a page is actually loading.</p> <p>...but however, if change to just "pageshow", the load message will display, but of course after the 5-10 seconds it takes to generate the list :-( ...which is certainly not what I want.</p> <p>Also, it does not matter if I comment out the calcLongList function or not...the page load msg behaves the same: works for 'pageshow'...but not for the 'pagebeforeshow' or the 'pagebeforecreate'...and I'm pulling my hair out trying to figure out what I might be doing wrong?</p> <p>Any advice or guidance would sure be appreciated, thanks in advance</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload