Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
Advertisement
Add Comment
Please, Sign In to add comment