thank u so much for reply. Finally i have done the thing what i want. But right now still have some problem need to solve it. I will explain wht i have done at here.
display.php - display the data like stock list
<script>
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
window.SearchFrame.location.replace("getdata.php");
countDown()
return
}
</script>
<iframe style="width:0px; height:0px" marginwidth=0 marginheight=0 frameborder="no" name="SearchFrame" scroll="no" src=""></iframe>
<?
sql statement ...........
looping ........
{
$norow = mysql_num_rows($sql) ;
echo'
<script language="JavaScript1.2">
function LoadTopFrame'.$norow.' (rowsnum3,Showwater)
{
water'.$norow.'.innerText=Showwater;
}
</script>
';
<td><div align="center" id="water'.$norow.'"></div></td>
}?>
getdata.php
sql statement - same as display.php
looping......... {
<script language='Javascript'>
var Showwater = '<?php echo $showwater; ?>';
</script>
<? echo'
<script language="Javascript">
window.parent.LoadTopFrame'.$norow.'(rowsnum3,Showwater);
</script> ';
}?>
The above code is the stupid way i doing right now. each time running
it will go to getdata.php to get the latest data without refresh the page, then pass back to display.php. It's work fine.
The problem i face now was sometimes the data changing, javascript will prompt the error msg "object underfined"..
This is the problem i need to solve it first.