开发者

How to show loading when using JQuery Mobile [duplicate]

开发者 https://www.devze.com 2023-03-10 01:13 出处:网络
This question already has answers here: 开发者_开发问答 Closed 10 years ago. Possible Duplicate: Show Page Loading Spinner on Ajax Call in jQuery Mobile
This question already has answers here: 开发者_开发问答 Closed 10 years ago.

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 );
0

精彩评论

暂无评论...
验证码 换一张
取 消