Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show loading when using JQuery Mobile [duplicate]

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?

like image 319
user705414 Avatar asked May 31 '11 22:05

user705414


2 Answers

//show    
$.mobile.showPageLoadingMsg();

//hide
$.mobile.hidePageLoadingMsg();

http://jquerymobile.com/test/docs/api/methods.html

like image 86
Homer Avatar answered Oct 05 '22 21:10

Homer


This API changed again in JQM 1.2. In that version $.mobile.loading('show') and $.mobile.loading('hide') should be used instead.

like image 35
Tiago Avatar answered Oct 05 '22 20:10

Tiago