I’m trying to use jqm’s loading spinner as details here: http://jquerymobile.com/test/docs/pages/loader.html
Calling $.mobile.loading('show'); or any other $.mobile.loading(...) methods from within my jqm app or from firebug console does not work.
The error message in the console is: $.mobile.loading is not a function
If i open firebug and run console.log($.mobile); i get the below object with no loading or loader methods.

I have also tried including the below code, but with no joy:
$( document ).bind( 'mobileinit', function(){
$.mobile.loader.prototype.options.text = "loading";
$.mobile.loader.prototype.options.textVisible = false;
$.mobile.loader.prototype.options.theme = "a";
$.mobile.loader.prototype.options.html = "";
});
Any help appreciated 🙂
I would say that you are not using the last version of jQuery Mobile, and the loading method is quite new (don’t know which version was released in). Try using