The situation is; I receive a response back from the server which i
only a part of html code. e.g. a table like <table
<tr><td>high</td></tr>........ </table>. In other words, I receive
file as a response which has a part of html file.
My aim is to replace an existing document node with the new response.
If I run the following lines (JavaScript):
var parsedText = document.createTextNode(req.responseText);
body.replaceChild(parsedText, toReplace)
It replaces the node 'toReplace' with html codes with the tags include
which is not what I want. The html tags are not wanted but shoul
display in correct format as specified by html (a tabular form if htm
tag is <table>)
If I try:
alert(responseXML); (its blank.... nth gets displayed in the aler
message)
var parsedText = document.createTextNode(req.responseXML);
body.replaceChild(parsedText, toReplace); (it replaces toReplace b
"[object]" in IE6)
Any kind of help will be appreciated.
Anan
--
Anan
-----------------------------------------------------------------------
Anand's Profile:
http://www.highdots.com/forums/member.php?userid=7
View this thread:
http://www.highdots.com/forums/showthread.php?t=123946