I have a problem with my chat script in Google Chrome. Sometimes the responsetext is empty until you reload the page, but sometimes it\'s working well. It opens a xmlhttp connec
try this out
var xmlHttp; xmlHttp=new XMLHttpRequest(); var url = "text.php"; xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState==4 && xmlHttp.status==200) { var msg = xmlHttp.responseText; alert(msg); } } xmlHttp.open("GET", url, true); xmlHttp.send(null);