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
Post a Comment