Почему ничего не выводиться, если я хочу открыть файл, содержащий javascript?
огрызок главной страницы :
function callServer() {
var url = "tree[1].html";
xmlHttp.open("GET", url, true);
xmlHttp.onreadystatechange = updatePage;
xmlHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
xmlHttp.send(null);
}
function updatePage() {
if (xmlHttp.readyState == 4) {
if (xmlHttp.status == 200) {
var response = xmlHttp.responseText;
document.getElementById("zipCode").innerHTML = response;
}
else {
alert("status not 200 = "+xmlHttp.status+" !");
}
}
}
файл tree[1].html: