JQuery Mobile Loader Widget not showing automatically on Ajax Calls -
in jquery mobile documentation can read following:
the loader widget handles task of displaying loading dialog when jquery mobile pulls in content via ajax. can displayed manually custom loading actions using $.mobile.loading helper method (see global method docs).
what mean 'pulls in content via ajax'?
i understand following; jquery mobile displays loading dialog on ajax calls. isn't working, when simple ajax call, loader doesn't show. (http://jsfiddle.net/qce8g/).
$.get("http://echo.jsontest.com/key/awesome/number/five", function(data) { var json = { json: json.stringify(data) }; $("div").html(json.stringify(data)); }); i can set loader widget programmatically this:
$(document).ajaxstart(function() { $.mobile.loading('show'); }); $(document).ajaxstop(function() { $.mobile.loading('hide'); }); what doing wrong? there built in logic show , hide loader widget or should show programmatically?
Comments
Post a Comment