problem with httpRequest.responseXML in ajax
Hi,
I am new about ajax.
and in my function i got null in alert(httpRequest.responseXML);
where is the problem?
function processRequest()
{
if (httpRequest.readyState == 4)
{
if(httpRequest.status == 200)
{
alert(httpRequest.readyState+" - "+httpRequest.status);
//get the XML send by the servlet
var profileXML = httpRequest.responseXML.getElementsByTagName("Profile")[0];
alert(httpRequest.responseXML);
//Update the HTML
updateHTML(profileXML);
}
else
{
alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);
}
}
}

