Hi Madwormer2,
thankyou for your reply, as I told b4 I'm new to ajax.. I've tried to follow ur idea(maybe in a wrong way), but it doesn't work, it blinks still. Please let me know what am I doing wrong..
TIA
//foobar.php == main page
<div style="display:none;">
<iframe src="page.htm">
</iframe>
</div>
Shoutbox:
<div id="shoutbox">
<?
include 'shoutbox.php';
?>
</div>
I've inserted the body onload part inside the shoutbox.php.. something like this:
<html>....
<head>
</head>
<body onload="parent.document.getElementById('shoutbox').innerHTML = document.getElementById('content').innerHTML;setTimeout('window.location.reload()',10000);"> <div id="content">
//mysql
//fetch latest messages
//echo them properly
</div>
</body>
</html>