I'm trying to add a news ticker on a website.
The data headlines are based on a RSS feed.
The ticker needs to read a php file of the feed.xml RSS file data.
The RSS feed will change constantly, therefore the php file referenced in the ticker would work best if it updated automatically from the feed.xml file.
I know next to nothing about php, but I assume this is possible. The feed.xml simply becomes a variable within the feed.php file, populates the ticker, and off it goes.
The data in the feed.xml file is, for example
<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<title>The Website Name</title>
<description>The Website Description</description>
<link>http://www.thewebsiteurl.com</link>
<item>
<title>Headline article</title>
<description></description>
<guid isPermaLink="true">http://www.thewebsiteurl.com/specificarticle.html</guid>
<link>http://www.thewebsiteurl.com/specificarticle.html</link>
</item>
</channel>
</rss>
I want to grab the </ item> data, so that if you click on the headline <title> in the ticker it will open the <link> url in a new window. The php file needs to grab those two elements, and from there I can work on the javascript to make that happen. (ever the optimist)
see also this thread http://www.webdeveloper.com/forum/sh...409#post776409
thanks!


Reply With Quote
Bookmarks