yeah, but you see, this will acutally take LESS than the current shoutbox because sending a HEAD request doesnt get the actual doucument, so pressing refresh would not get the 3.36kb of shoutbox, but the header.
CODE
javascript:xmlhttp = new XMLHttpRequest();xmlhttp.open("HEAD", "http://www.staredit.net/index.php?act=Shoutbox&view=globalshouts",true);xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4) {alert(xmlhttp.getAllResponseHeaders());}};xmlhttp.send(null);
Copy this into the browser window to see the current header.
The header I want you to add is Last-Modified. Heres an example
CODE
Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT
Then, the AJAX can send a head request and see if the shoutbox has been updated by comparing it with the previous one it had.