Jump to content

Help with Javascript XML Initgration my my site.


Guest Justin Burrous

Recommended Posts

Guest Justin Burrous

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

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
well, 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...