Switch to full style
JQuery Examples
Post a reply

Show loading image from JQuery

Tue Jan 08, 2013 9:29 pm

Show loading image from JQuery as AJAX status
javascript code
<html>
<head>
<title>Loading Image using JQuery </title>

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
Note you can download the JQuery package instead of using Google version. -->
<script src="jquery-1.8.3.js"></script>
<script>
function LoadPageUsingAjax() {
$('#divMe').html('<p><img src="loader.gif" /></p>');
setTimeout('LoadFile()', 4000);
}
function LoadFile() {

$('#divMe').load("smallTable.html");
}
</script>
<style type="text/css">
div#divMe
{
font-weight:bold;
background:#1CC4F1;
visibility:visible;
text-align:center;
text-decoration: underline;
color:Red;
}
</style>

</head>

<body>
<input type="button" onclick="LoadPageUsingAjax()" value="Do it" />
<div id="divMe">
<p>File will be loaded Here Using AJAX</p>
</div>
</body>
</html>


smallTable.html :
html code
<table>

<tr>
<td>
Bank Account-1
</td>
<td>
Bank Account-2
</td>
</tr>

<tr>
<td>
311USD
</td>
<td>
355USD
</td>
</tr>

</table>




Post a reply
  Related Posts  to : Show loading image from JQuery
 show loading status message until the applet is fully loaded     -  
 Show Progress Bar using JQuery     -  
 Show slider Bar using JQuery     -  
 Show Spinner using JQuery     -  
 Show Tabs Panel using JQuery     -  
 Show popup dialog using JQuery     -  
 Show hint when focus on html element using JQuery     -  
 image slide show     -  
 Show image using before property     -  
 Show image when click on link     -