I need Javascript help....
Date: 10/21/05
(Javascript Community) Keywords: rss, html, xml, java, microsoft
FELLOW NERDS! PLEASE HELP!
This is what I have, a site loads. It has a news bar on the side (similar to an RSS feed). The news bar calls an XML file for it's info. Javascript loads the XML file on page load, and the span object is suppose to insert the XML data... SUPPOSE TO...
Here's my XML file (not pretty, but effective):
October 21, 2005
Finally got around to uploading the index page and framesets to my new homepage
October 20, 2005
Today I worked out the spacing issues for the framesets for the new homepage. Stay tuned for a preview...
October 20, 2005
Not much work today other than a personal LiveJournal update...
And here is the Java script in the head of the HTML page:
for="window" event="onload">
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("feed.xml")
nodes = xmlDoc.documentElement.childNodes
date1.innerText = nodes.item(0).text
synopsis1.innerText = nodes.item(1).text
date2.innerText = nodes.item(2).text
synopsis2.innerText = nodes.item(3).text
date3.innerText = nodes.item(4).text
synopsis3.innerText = nodes.item(5).text
And the HTML to call it:
|
Now, I KNOW the answer is staring me in the face, but I just can't put my finger on it. SOMEBODY HELP!
Source: http://www.livejournal.com/community/javascript/80251.html