Hi All
I would like to insert a part (an element with all its children) from XML file into the dom. So far I’m able to load the XML via AJAX and extract the node of interest
[code]
var node_tags = ajaxresp.responseXML.getElementsByTagName(‘*’) ;
for(var i = 0; i < node_tags.length; i++) {
if ( node_tags[i].getAttribute(‘id’) == id ) {
document.getElementById(‘container’).appendChild(node_tags[i]) ; // FF. Doesn’t seem to do much in IE
document.getElementById(‘container’).innerHTML = node_tags[i].xml ; // IE. In FF node_tags[i].xml is ‘undefined’
}
}
Is there a way to do this which is the same for all browsers ? (I prefer a solution using ‘innerHTML’!)
thnx a lot
LuCa