1. 3 Jul Did you ever ask yourself how can you display a “loading” indicator when you make ajax calls using various libraries? The simple but efficient answer is this: 1 2 3 4 5 6 $(document).ready(function(){ $('Loading...') .ajaxStart(function() {$(this).show();}) .ajaxStop(function() {$(this).hide();}) .appendTo('body'); }); And that’s all. You need to do this only once. Ofcourse, you can apply some CSS styles to #busy div, using an image generated with ajaxloa (Read Full Article)

    Related Articles

Login to comment.

 
Home All Articles Entities Quotes Comments Login Register Powered by HiveFire