The exception you encounter is due to an invalid method reference, as indicated in the error:
Uncaught TypeError: Object # does not have a 'loading' method
The loading() method was added in 1.2, but you are using 1.1.1, so it claims to have no loading method.
Show or hide the page load message, which is configured through $ .mobile.loader, as described in widget documents or can be controlled using the params object.
Using:
//cue the page loader $.mobile.loading( 'show' ); //use theme swatch "b", a custom message, and no spinner $.mobile.loading( 'show', { theme: "b", text: "foo", textonly: true });
The method you should use for your version is showPageLoadingMsg() .
Using:
//cue the page loader $.mobile.loadingMessage = 'Loading...Please wait'; $.mobile.showPageLoadingMsg(); //use theme swatch "b", a custom message, and no spinner $.mobile.showPageLoadingMsg("b", "This is only a test", true);
source share