J
jobo
Hello,
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "asdf.htm",true);
xmlhttp.onreadystatechange=function() {
//ALERT DOES NOT TRIGGER
alert("Status is "+ xmlhttp.readyState)
if (xmlhttp.readyState==4) {
if (xmlhttp.status==200) alert("URL Exists!")
else if (xmlhttp.status==404) alert("URL doesn't
exist!")
else alert("Status is "+xmlhttp.status)
}
}
I was wondering why the above alert wasn't triggering. The javascript
doesn't seem to have an error. Any ideas? Thanks.
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "asdf.htm",true);
xmlhttp.onreadystatechange=function() {
//ALERT DOES NOT TRIGGER
alert("Status is "+ xmlhttp.readyState)
if (xmlhttp.readyState==4) {
if (xmlhttp.status==200) alert("URL Exists!")
else if (xmlhttp.status==404) alert("URL doesn't
exist!")
else alert("Status is "+xmlhttp.status)
}
}
I was wondering why the above alert wasn't triggering. The javascript
doesn't seem to have an error. Any ideas? Thanks.