Hello again,
I was wondering why I get a different status result when I call a funtion in js with and without brackets and vars. In particular if I call processChange without brackets I get a ready state of 4 and status of 200, if I call with () or if I try to pass a variable in after adding this to the function processChange I get 0,0 for ready state and status??????
Thanks in advance,
Leander
[code] if (req != null) {
req.onreadystatechange = processChange;
req.open(“POST”, url, true);
req.send(null);
}
}
function loadXMLDoc2(url) {
loadXMLDoc(url);
}
function processChange() {
// The page has loaded and the HTTP status code is 200 OK
if (req.readyState == 4 && req.status == 200) {
// Write the contents of this URL to the south_east_box div
getObject(p_name).innerHTML = req.responseText;
}
}