Here's the code for one of the functions. The other 2 are identical except for the link and the div they update.
Code: Select all
function updatelist(round)
{
if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); }
else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("mailboxlinks").innerHTML=xmlhttp.responseText;
}
}
var thelink = "mailboxlinks.php?x=" + round;
xmlhttp.open("GET",thelink,true);
xmlhttp.send();
}I've changed the link variables so they're all different and it doesnt do it as often but if any of the responsetext is blank, they all go blank