Guest Justin Burrous Posted October 3, 2010 Share Posted October 3, 2010 Hello. I have a personal website with a news section. Each news event is done in XML, and I have javascript display that xml on the news page on my website. The issue is that it is not displaying. I have tried several different things and nothing seems to work. I got the javascript from w3schools XML lesson page.the page I am having trouble with is justinmburrous.com/newsAny help would be greatly appreciated.Thanks--Justin Burrous Link to comment Share on other sites More sharing options...
thescientist Posted October 4, 2010 Share Posted October 4, 2010 Hello. I have a personal website with a news section. Each news event is done in XML, and I have javascript display that xml on the news page on my website. The issue is that it is not displaying. I have tried several different things and nothing seems to work. I got the javascript from w3schools XML lesson page.the page I am having trouble with is justinmburrous.com/newsAny help would be greatly appreciated.Thanks--Justin Burrouswell, that's a pretty simple one for ya. It's because you're initializing one variable as being a new xmlHttp Object but then using a completely different variable to call the methods<script type="text/javascript"> if (window.XMLHttpRequest){ xhttp=new XMLHttpRequest(); }else { // for IE 5/6 xhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","http://justinmburrous.com/xml/news.xml",false); xmlhttp.send(); . . . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.