Possible Duplicate:
Show Page Loading Spinner on Ajax Call in jQuery Mobile
have a JQuery mobile UI, how to show loading when page is not fully showed?
//show
$.mobile.showPageLoadingMsg();
//hide
$.mobile.hidePageLoadingMsg();
http://jquerymobile.com/test/docs/api/methods.html
This API changed again in JQM 1.2. In that version $.mobile.loading('show')
and $.mobile.loading('hide')
should be used instead.
Docs: http://jquerymobile.com/demos/1.0a4.1/#docs/api/methods.html
$.mobile.pageLoading (method)
Show or hide the page loading message, which is configurable via $.mobile.loadingMessage. Arguments: Done (boolean, defaults to false, meaning loading has started). True will hide the loading message. Examples:
//cue the page loader
$.mobile.pageLoading();
//hide the page loader
$.mobile.pageLoading( true );
精彩评论