Problem in getting Http Response in crome
- by Bhaskasr
hi
Am trying to get http response from php web service in javascript , but am getting null in firefox and crome. plz tell me where am doing mistake here is my code,
function fetch_details()
{
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest()
alert("first");
}
else
{
xhttp=new ActiveXObject("Microsoft.XMLHTTP")
alert("sec");
}
alert("hi.");
xhttp.open("GET","http://122.166.97.94:8080/proxim_live/phpsend.php?UserID=881&DeviceID=Imm123&LastSyncDate=",false);
xhttp.send("");
xmlDoc=xhttp.responseXML;
alert(xmlDoc);
alert(xmlDoc.getElementsByTagName("Inbox")[0].childNodes[0].nodeValue);
}