Hello,
i have a refresh flightboard with jquery.
I created a single php file with all code of flightboard lets say flightboard.php
Then in site header insert (if you dont have yet)<script type=“text/javascript” language=“javascript” src=“URLTOJQUERY/jquery-latest.js”></script>
next
<script type=“text/javascript”>
refreshId = null;
$(document).ready(function() {
$(“#YOURDIV”).load(‘PATHTOFILE/flightboard.php’);
var refreshId = setInterval(function() {
$(“#YOURDIV”).load(‘PATHTOFILE/flightboard.php?randval=’+ String((new Date()).getTime()).replace(/\D/gi, “”));
}, 10000);
});
</script>
The line with randval… is for IE
The 10000 is refresh 10 seconds
To show just echo YOURDIV like <div id=“YOURDIV”></div>
In top of your flightboard.php you need to add the lines at the top to prevent cache i think
header(“Expires: Mon, 1 Dec 2003 01:00:00 GMT”);
header(“Last-Modified: " . gmdate(“D, d M Y H:i:s”) . " GMT”);
header(“Cache-Control: no-store, no-cache, must-revalidate”);
header(“Cache-Control: post-check=0, pre-check=0”, false);
header(“Pragma: no-cache”);
header(“Content-Type: text/html; charset=ISO-8859-1”);
Hope it helps you