N
Nicole.Winfrey
Hi,
At the moment, I'm displaying the XML HTTP response text using
javascript alert (see below).
I'm trying to render XML HTTP response in a new window and the output
of the window needs to be of content type text/xml (i.e. the XML
output where you can expand/contact the tags in browser).
Is there anyway to render the XML? Thanks....
// Post XML via AJAX.
xmlhttp.open("POST", "http://localhost/processRequest", true);
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4)
{
alert(xmlhttp.responseText);
}
}
xmlhttp.setRequestHeader("Content-Type", "text/xml")
xmlhttp.send(xmlRequest);
At the moment, I'm displaying the XML HTTP response text using
javascript alert (see below).
I'm trying to render XML HTTP response in a new window and the output
of the window needs to be of content type text/xml (i.e. the XML
output where you can expand/contact the tags in browser).
Is there anyway to render the XML? Thanks....
// Post XML via AJAX.
xmlhttp.open("POST", "http://localhost/processRequest", true);
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4)
{
alert(xmlhttp.responseText);
}
}
xmlhttp.setRequestHeader("Content-Type", "text/xml")
xmlhttp.send(xmlRequest);