winicius Posted October 9, 2007 Share Posted October 9, 2007 The following code works perfectly on Firefox rendering the page according to a predefined CSS file. The issue I am having now is that IE 7 is unable to append the element list[0] which denotes a Node. While I'm getting the information from the XML file loading properly with Firefox, IE is not displaying anything. Down below I put part of my javascript with the XML file that the information is being extracted from. Maybe someone out there has already had a problem similar to this, any help is greatly appreciated. Thanks. Javascript: function buildContent(){ var contentsec = document.getElementById("infocontent"); var list = req.responseXML.getElementsByTagName("content"); contentsec.appendChild(list[0]); } XML <?xml version="1.0" encoding="utf-8"?> <content> <h1>Blah Blah Blah</h1> <h2>Blah Blah Blah Blah Blah Blah</h2> </content> Link to comment https://forums.phpfreaks.com/topic/72418-getelemenbytagname-on-ie-firefox/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.