Sethington
Technical User
What I want to do is use ajax to return a table that was generated using a jsp. I am getting the table back and it is displaying on the page but it is returning all of the tags with it. IE. <table><tr><td></td></tr></table>
My parsing javascript method looks like this:
Please advise
Thank You
My parsing javascript method looks like this:
Code:
function parseResults() {
var responseDiv = document.getElementById("serverResponse");
if(responseDiv.hasChildNodes()) {
responseDiv.removeChild(responseDiv.childNodes[0]);
}
var responseText = document.createTextNode(xmlHttp.responseText);
responseDiv.appendChild(responseText);
}
Please advise
Thank You