Loading Page Script
How to show ajax loading gif animation while the page(http://www.xyz.com/ ....) is loading?
<tr>
<td>
<br>
<?php include("http://www.xyz.com/search.php?notice[]=1§or=0"); ?>
</td>
</tr>
You don't need Ajax...
HTML Code:
<body onLoad="document.getElementById('siteLoader').style.display = 'none';" >
<!-- loading BEGIN -->
<div id="siteLoader" >
<div id="loadImg" >
<img src="http://cdn.nirmaltv.com/images/generatorphp-thumb.gif" border="0" align="left" style="margin-top:-12px;" >
</div>
</div>
<!-- loading END -->
Thanks. Even after the page has loaded the loading image remains on the page. The link to the URL is - http://www.ittenders.com/indexx4.htm
I have not found it in your code yet, but at the call to the ajax load function, do this:
Code:
document.getElementById('siteLoader').style.display = 'block';
When the information has been loaded and the function finishes, do this:
Code:
document.getElementById('siteLoader').style.display = 'none';
This assumes you use the <body> tag to initialize the siteLoader graphic display to be 'none'
The loading page still remains. Please check at this link
Hi, if you are using JQUERY you can try with this on the HEAD
<script type="text/javascript">
$(document).ready(function(){
$('#loadImg').hide();
});
</script>
Have already mentioned it -
<body onLoad="document.getElementById('siteLoader').style.display = 'none';" style="margin-bottom: 0px; margin-left: 0px; margin-top: 10px;">
Hi, jquery its not being loaded, you can check if the link is correct. Check on firebug and you will see when you call $(document).ready it is not being execute due to that fact. If you are checking on opera inspector you can see the jquery library is not loaded or found
Here is a simple working example
http://www.metataggenerator.org/analyzer/just-fb-id.php
This page is actually a popup that will identify a Facebook user by their ID number, etc.
You can examine the source code.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks