Thread: RSS Tickers

  1. #1
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413

    RSS Tickers

    First off, I'm pretty noob when it comes to anything web. I know some HTML and JavaScript, but not enough to solve my problem.

    Anyway, I need to create a table containing an RSS ticker and four buttons at the bottom. Mousing over the buttons needs to change the RSS ticker's feed. I know enough HTML to create the table needed. I can find plenty of free JavaScript RSS tickers, and I know enough JavaScript to handle the onMouseOver stuff for the buttons too.

    The part I'm getting tripped up on is how I'd change the RSS ticker's feed. I know you can issue JavaScript commands inside img/link tag's onMouseOver, but what would be the best way to do this? I was thinking that I could change the RSS ticker's feed URL variable, but it probably wouldn't update, as I imagine the ticker doesn't reload that URL every single time.

    Any help would be appreciated, thanks.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Epy View Post
    I was thinking that I could change the RSS ticker's feed URL variable, but it probably wouldn't update, as I imagine the ticker doesn't reload that URL every single time.
    I'm not familiar with RSS tickers, but googling around I'm guessing you are using a javascript one that exploits "Ajax" methods (via "the XMLHttpRequestObject"). In that case, the ticker must make a fresh request to the feed every time it includes new data -- it cannot maintain a connection. That means you should be able to change the URL used and have it switch feeds immediately.

    However, that depends on how that url is set and whether the one that's set is the one that's used, etc. Look around for something to do with the XMLHttpRequest or something called something like that -- this is where the url that's used is used.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Cool, thanks

  4. #4
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    For everyone else's reference, this is what I ended up using: Javascript RSS Reader | JavaScript XML & JavaScript

    You can call ReadRSS which will replace the contents of a div with the specified RSS feed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [site suggestion] any RSS?
    By gibsosmat in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-10-2007, 06:54 AM
  2. Who subscribes to cboard's RSS Feed?
    By SlyMaelstrom in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 11-20-2006, 05:42 AM
  3. RSS Feeds
    By ober in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 04-02-2005, 03:36 PM
  4. RSS Feeds
    By Scribbler in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 02-11-2005, 09:07 PM