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? Quote Link to comment Share on other sites More sharing options...
Omirion Posted August 28, 2010 Author Share Posted August 28, 2010 Nevermind Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.