Created
January 4, 2011 11:33
-
-
Save piermadonia/764678 to your computer and use it in GitHub Desktop.
javascript to dynamically load content in a div
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
<script type="text/javascript"> | |
function replace_ajax_request() { | |
$('#replace').html('<div class="column last loader"><div class "innerload"><div class="column loadbox"><p><img class="loadimg" src="path/to/ajax-loader.gif" class="center" width="100" height="100" /></p></div><div class="column loadbox"><p>src="path/to/ajax-loader.gif" class="center" width="100" height="100" /></p></div><div class="column last loadbox"><p>src="path/to/ajax-loader.gif" class="center" width="100" height="100" /></p></div></div></div>'); | |
$('#replace').load("replace.html"); | |
}</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment