Javascript xml data not loading

Discussion in 'XML Forums' started by videnteonline, Apr 10, 2013.

  1. videnteonline

    videnteonline New Member

    I am having issues with getting my xml information loaded on my page. The error that it comes up with is: TypeError: s.getElementByTagName is not a function. Is there a way to fix my problem?\[code\] if (window.XMLHttpRequest) { xmlhttp=new window.XMLHttpRequest(); } else if (ActiveXObject("Microsoft.XMLDOM")) { xmlhttp=new ActiveXObject("Microsoft.XMLDOM"); }"GET","slideshow.xml",false); xmlhttp.send(""); xmlhttp=xmlhttp.responseXML; var s= xmlhttp.getElementsByTagName("slide"); var i = 0; function showSlide() { document.getElementById("title").innerHTML = (s.getElementByTagName("title")[0].childNodes[0].nodeValue); }\[/code\]

Share This Page