Hello,
below the fragment that works fine, but nevertheless, the value of xmlhttp.status
turns out to be zero (0), and the corresponding value for xmlhttp.statusText is "unknown".
Does anyone know the details of ALL the statuscodes when the value for readyState is 4 (= completed).
Also, where could I have found the answer myself???
thanks,
Frens
xmlhttp.open("GET", "test.txt",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
window.alert("Show the stuff");}
}
xmlhttp.send(null)
window.alert(xmlhttp.readyState);
window.alert(xmlhttp.responsetext);
window.alert(xmlhttp.responseXML);
window.alert(xmlhttp.status);
window.alert(xmlhttp.statusText);