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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -