M
mr_burns
hi,
i am using the following code which works well in internet explorer
but not in firefox (and perhaps others too):
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.load("xml/names.xml");
nodes = xmlDoc.documentElement.childNodes
span_html = '<p>'
for (var i=0; i<nodes.length; i++) {
name = nodes.item(i).firstChild.text
span_html += 'name: '+name+'<br>';
}
span_html += '</p>';
can anybody tell me another way of writting this so it will work in
other browsers or better yet, so it will work in other browsers and
internet explorer? cheers
burnsy
i am using the following code which works well in internet explorer
but not in firefox (and perhaps others too):
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.load("xml/names.xml");
nodes = xmlDoc.documentElement.childNodes
span_html = '<p>'
for (var i=0; i<nodes.length; i++) {
name = nodes.item(i).firstChild.text
span_html += 'name: '+name+'<br>';
}
span_html += '</p>';
can anybody tell me another way of writting this so it will work in
other browsers or better yet, so it will work in other browsers and
internet explorer? cheers
burnsy