Show spinner not working with Chrome jQuery Mobile -


how can make work chrome browser?

function dowork() {     $.ajax({         beforesend: function () {             $.mobile.loading("show", {                 text: "working...",                 textvisible: true             });         },         type: "post",         url: "ajax.jsp",         cache: false,         async: false,         datatype: "text",         data: {             id: foo         }     }) } 

in webkit based browsers, remember timing issue, try using setinterval like:

var tim = setinterval(function(){     $.mobile.loading("show", { text: "working...", textvisible: true });     clearinterval(tim); },1);  

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -