
Untitled
By: a guest on
May 11th, 2012 | syntax:
None | size: 0.52 KB | hits: 39 | expires: Never
Rails / Jquery: When loading a page how to see a spinning wheel?
<div id="container" >
<img src="ajax-loader.gif" alt="Loading" />
</div>
<div id="container" >
Replace image with Page content after fetching data ajax/jquery response
</div>
$('#loadingDiv')
.hide()
.ajaxStart(function() {
$(this).show();
})
.ajaxStop(function() {
$(this).hide();
})
;
<div id="loading" style="display:none;">
Loading Please Wait....
<img src="ajax-loader.gif" alt="Loading" />
</div>