|
My AJAX code is not running
my ajax code is not running!!
function loadXMLDoc(){
var xmlhttp;
if(window.XMLHttpRequest) {
xmlhttp= new XMLHttpRequest();
}
else {
xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
}
if(xmlhttp) {
xmlhttp.open("GET", "../NewProject/WebContent/html/ajax_info.html", true);
xmlhttp.onreadystatechange= onReadyState;
function onReadyState(){
if(xmlhttp.readyState==4 && xmlhttp.status ==200){
document.getElementById("myDiv").innerHTML = xmlhttp.responseText;
}
xmlhttp.send();
}
}
}
internet explorer says access denied at the line -
xmlhttp.open("GET", "../NewProject/WebContent/html/ajax_info.html", true);
|