Results 1 to 4 of 4

Thread: RSS Feeds Displayer

  1. #1
    Join Date
    Feb 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RSS Feeds Displayer

    1) Script Title: RSS Feeds Displayer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...sdisplayer.htm

    3) Describe problem: IN http://www.croem.we.bs/noticroem.es.puertorico.html when using several feeds, only one or none show. They are all based on the first example, and I have added a script to change the font and size.

    What do I have to do to make all of them to show up?

    Thanks!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    For each RSS instance on your page, the variable "cssfeed" needs to be different/ unique. So while for the first instance, you may have:

    Code:
    var cssfeed=new gfeedfetcher("example1", "example1class", "")
    cssfeed.addFeed("El Nuevo Dia - Portada", "http://www.elnuevodia.com/rss/portada.xml") //Specify "label" plus URL to RSS feed
    cssfeed.setentrycontainer("li") //Display each entry as a list (li element)
    cssfeed.filterfeed(10, "title") //Show 10 entries, sort by date
    The 2nd instance mus use a variable other than "cssfeed", and so on.
    cssfeed.init() //Always call this last

  3. #3
    Join Date
    Feb 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    After changing the variables, the same problem is still there. I uploaded again the gfeedfetcher file but still

    is there anything else wrong?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The id parameter that you pass into each script instance must also be unique for each instance, in other words, the code in red:

    Code:
    var endportadafeed=new gfeedfetcher("example1", "example1class", "")
    Pease read the script page again, which outlines all of this actually.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •