the problem is that the server is not getting that window datatype of the xmlhttp.status so i converted it into string & it worked....
var xmlHttp;
function StartRequest()
{
if(window.ActiveXObject)
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}else if(window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
xmlHttp.onreadystatechange = callback;
xmlHttp.open("GET", "Update_Delete.jsp", true);
xmlHttp.send(null);
}
function callback()
{
if(xmlHttp.readyState==4)
{
var check=xmlHttp.status;
alert(check);
if(check.toString()=="200")
{
alert("HI");
document.getElementById("results").innerHTML = xmlHttp.responseText;
}
}
}