View Single Post
  #7 (permalink)  
Old 03-17-04, 01:54 PM
jewellgr jewellgr is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Michigan USA
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
This is the code I used for refreshing. This was a hidden iframe running in the background. It pointed to the parent window and refreshed the <div> or <td> tag that had id=chat. (This produces no clicking sound)

Code:
<html><head>
<script>
function LoadData ()
{
  parent.document.getElementById('chat').innerHTML = "<?echo $message;?>";
}
</script>
<script language="JavaScript">

var sURL = unescape(window.location.pathname);

function doLoad()
{
  setTimeout( "refresh()", 1000 ); // 1 second
}

function refresh()
{
  window.location.href = sURL;
}
</script>
<script language="JavaScript1.1">
function refresh()
{
	window.location.replace( sURL );
}
</script>
<script language="JavaScript1.2">
function refresh()
{
	window.location.reload( false );
}
</script>
</head>
<body onload="LoadData;doLoad()">
</body>
</html>
Hope this helps.
__________________
ArecaWeb Team
Gregg Kenneth Jewell
Reply With Quote