View Full Version : RSS Feeds Displayer

02-02-2008, 06:50 AM
1) Script Title: RSS Feeds Displayer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.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?


02-03-2008, 08:12 AM
For each RSS instance on your page, the variable "cssfeed" needs to be different/ unique. So while for the first instance, you may have:

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

02-03-2008, 09:11 AM
After changing the variables, the same problem is still there. I uploaded again the gfeedfetcher file but still

is there anything else wrong?

02-03-2008, 04:04 PM
The id parameter that you pass into each script instance must also be unique for each instance, in other words, the code in red:

var endportadafeed=new gfeedfetcher("example1", "example1class", "")

Pease read the script page (http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm) again, which outlines all of this actually.