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);

}

}

}

[681 byte] By [pvanjavaa] at [2007-11-26 18:27:13]
# 1
I know you think javascript is related to Java, but it isn't.
warnerjaa at 2007-7-9 6:01:20 > top of Java-index,Java Essentials,New To Java...
# 2
Him and a few other op... who keep on posting javascript related questions in this foruns.MeTitus
Me_Titusa at 2007-7-9 6:01:20 > top of Java-index,Java Essentials,New To Java...