![]() |
Ajax loader using php include Possible?
Hello!
I have a question. Is it possible to use an ajax loader to load a php page that displays a repeating table of information? The reason I want to do this is because the php page takes forever to load and it doesn't display anything till everything is done by the server. So I am wondering how to create a script that displays a loader image while the php page is being executed and when it is then the image disappears and the php page is displayed in its place. I am thinking using <div> for all of it but I don't know where to go from there. I tried looking for a script on google but to no avail. Anyone have any ideas? Thanks! |
Add a div to the page. On window.onload fire off an Ajax call to fecth the PHP page that generates the table. When the request returns set the innerHTML of the table with the responseText.
Eric |
This is what I put and it works great! This is the script part.
Code:
<script type="text/javascript">Code:
<div id="content"> |
| All times are GMT +1. The time now is 03:18 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.