Omirion Posted August 28, 2010 Share Posted August 28, 2010 Hey guys, new to Ajax. I have this window.onload = function () { alert("loaded") var http = new XMLHttpRequest; http.onreadystatechange = function () { if (http.readyState == 4) { alert("response is ready"); var txt = http.responseXML.getElementsByTagName("data") document.getElementById("myDiv").innerHTML = txt[0]; } } http.open("GET", "a.xml", true); http.send(); } I get "Object" + Whateever the object is. How can i get the value between the XML tags? Link to comment https://forums.phpfreaks.com/topic/211949-getting-the-xml-value/ Share on other sites More sharing options...
Omirion Posted August 28, 2010 Author Share Posted August 28, 2010 Nevermind Link to comment https://forums.phpfreaks.com/topic/211949-getting-the-xml-value/#findComment-1104603 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.