Total members 11894 |It is currently Thu Nov 21, 2024 9:08 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

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



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com