jquery-mobile-loader

Display Loading Animation Spinner while Loading Page

跟風遠走 提交于 2019-12-30 13:30:35
问题 I want to show loading animation spinner in a JQueryMobile page which is loaded w/ ajax off. The page is loaded with data-ajax="false" or rel="external" I tried on pagebeforecreate and pageshow event but its NOT working as I expected: $( '#page' ).live( 'pagebeforecreate',function(event){ $.mobile.loading('show'); }); $( '#page' ).live( 'pageshow',function(event){ $.mobile.loading('hide'); }); 回答1: There's a slight problem with your request. First, you will not be able to show/hide ajax

JQuery Mobile 1.3.1 “$.mobile.loading” not working

ぐ巨炮叔叔 提交于 2019-12-21 03:33:38
问题 I have the following code: HTML: <link rel="stylesheet" href="js/jquery.mobile-1.3.1.min.css"/> <script src="js/jquery-1.9.1.min.js"></script> <script src="js/jquery.mobile-1.3.1.min.js"></script> JS: $(document).on({ ajaxStart: function() { $.mobile.loading('show'); console.log('getJSON starts...'); }, ajaxStop: function() { $.mobile.loading('hide'); console.log('getJSON ends...'); } }); I'm using Jquery Mobile 1.3.1 and testing this code in mozilla firefox and google chrome at the moment. I

JQuery Mobile 1.3.1 “$.mobile.loading” not working

假如想象 提交于 2019-12-03 10:41:18
I have the following code: HTML: <link rel="stylesheet" href="js/jquery.mobile-1.3.1.min.css"/> <script src="js/jquery-1.9.1.min.js"></script> <script src="js/jquery.mobile-1.3.1.min.js"></script> JS: $(document).on({ ajaxStart: function() { $.mobile.loading('show'); console.log('getJSON starts...'); }, ajaxStop: function() { $.mobile.loading('hide'); console.log('getJSON ends...'); } }); I'm using Jquery Mobile 1.3.1 and testing this code in mozilla firefox and google chrome at the moment. I'm going to use it in a phonegap app later on. I'm loading a JSON and displaying it on screen in a

Display Loading Animation Spinner while Loading Page

社会主义新天地 提交于 2019-12-01 14:19:13
I want to show loading animation spinner in a JQueryMobile page which is loaded w/ ajax off. The page is loaded with data-ajax="false" or rel="external" I tried on pagebeforecreate and pageshow event but its NOT working as I expected: $( '#page' ).live( 'pagebeforecreate',function(event){ $.mobile.loading('show'); }); $( '#page' ).live( 'pageshow',function(event){ $.mobile.loading('hide'); }); There's a slight problem with your request. First, you will not be able to show/hide ajax loader without set interval. There's is only one situation where this is possible without and that is during the

don't hide loader till the page loads completely in jquery mobile

混江龙づ霸主 提交于 2019-11-28 08:10:14
问题 i am trying to show the page loading widget till the page loads completely, after that it should hide... and do this process every time i punch any anchor to transmit into next page.. Support i have three pages... <div data-role="page" id="home">....</div> <div data-role="page" id="about">....</div> <div data-role="page" id="contact">....</div> Script on this i am using:- $(document).on("pagecreate", function(event) { //alert("Take It Show"); $( ".ui-loader" ).loading( "hide" ); }); Is it