Created
September 20, 2012 09:03
-
-
Save rakeshtembhurne/3754788 to your computer and use it in GitHub Desktop.
Ajax file load
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTML | |
<div id="ajaxBusy"></div> | |
// CSS | |
#ajaxBusy { | |
display:none; | |
position: fixed; | |
z-index:999999; | |
height:99%; | |
width:99%; | |
background: url(../img/loading-icon-trans.gif) no-repeat 50% 50%; | |
} | |
// JavaScript | |
$(document).ajaxStart(function(){ | |
$('#ajaxBusy').show(); | |
}).ajaxStop(function(){ | |
$('#ajaxBusy').hide(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment