I am just wondering how to show an image that indicates that the async request is running. I use the following code to perform a async request:
$.ajax({
url: uri,
cache: false,
success: function(html){
$('.info').append(html);
}
});
Any ideas?
You can, of course, show it before making the request, and hide it after it completes:
I usually prefer the more general solution of binding it to the global ajaxStart and ajaxStop events, that way it shows up for all ajax events: