I am using new... Ill go see what debuging window says.
xmlhttp isnt null, but its an empty string. Odd.. Should it be an int or something? Actualy, it was blank from the first time I used it..
What else should I trace out, all I really know is that "xmlhttp.onreadystatechange = function()" isnt triggering after it works for the first time.
I should probably just include all my code..
code:
function updateChat()
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
Debug.Trace("xmlhttp : "+xmlhttp);
if (xmlhttp == null) Debug.Trace("Null");
xmlhttp.open("GET", "http://www.darksignsonline.com/chatlog-light.php", false);
xmlhttp.send("");
xmlhttp.onreadystatechange = function()
{
Debug.Trace(xmlhttp.readyState);
if (xmlhttp.readyState == 4 && xmlhttp.status)
{
// removed stuff that dosnt matter
}
}
}
I have also tried with ASYNC as true, same result. What should it be for my case?