[英]jquery-mobile spinner loading
i tried to do that while js is creating a timetable... it shows spinner loading.. 我试图在js创建时间表的同时这样做...它显示了微调器加载。
i tried to do this $.mobile.pageLoading(); $.mobile.pageLoading(true);
我试图这样做
$.mobile.pageLoading(); $.mobile.pageLoading(true);
$.mobile.pageLoading(); $.mobile.pageLoading(true);
and also tried to use this plugin http://contextllc.com/tools/jQuery-showLoading 并且还尝试使用此插件http://contextllc.com/tools/jQuery-showLoading
The result is the same.. it shows spinner after he generate time table.. and i don't know why...here is where i tried to use it... 结果是一样的..它显示微调器生成时间表后..我不知道为什么...这是我尝试使用它的地方...
$('#timeDropList').change(function() {
$.mobile.pageLoading(false);
$('div.addedEntry').remove();
drawTemplate();
});
Are you using the right version of jQuery Mobile? 您使用的是jQuery Mobile的正确版本吗? Looks like they took away the
pageLoading
method in 1.0b1 in favor of two separate methods: showPageLoadingMsg
and hidePageLoadingMsg
. 看起来他们在1.0b1中取消了
pageLoading
方法,转而使用了两个单独的方法: showPageLoadingMsg
和hidePageLoadingMsg
。 The last reference I see to pageLoading
is in 1.0a4.1. 我对
pageLoading
的最后参考是在1.0a4.1中。
$('#home').live('pagebeforecreate',function(event){
alert('This page was just enhanced by jQuery Mobile!');
$.mobile.loadingMessage = "pagebeforeshow Page...";
$.mobile.showPageLoadingMsg();
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.