I need to create a news ticker that is updated via an RSS feed. Any ideas on how to implement this?
I would prefer Javascript but any language is acceptable.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are are several good examples of this on this DynamicDrive page, although one of the requirements is that you can run PHP on your site. PHP here is used to fetch the actual feeds and allow your ticker to access them locally via an AJAX call.
There are several other projects out there built on JQuery, and the basic approach taken by each is:
use a PHP (or ASP.net) script to fetch the feed to your server.
access this local file via repeated AJAX calls, making use of setTimeout
update the display (ticker) with latest data fetched
The file is fetched to your local server for the AJAX calls due to the Same Origin Policy:
Further examples include:
JTicker from Jason’s Toolbox
JQuery feed plugin – need to read the comments on this one, as code originally posted doesn’t seem to work out of the box