PDA

View Full Version : Need Hrlp gAjax RSS Feeds Displayer



phoolz
07-06-2009, 04:54 AM
1) Script Title: gAjax RSS Feeds Displayer

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

3) Describe problem: I need to display only 1 item but only the second item from the array, not the first.
eg.:
ITEM1 < don't display
ITEM2 < display
ITEM3 < don't display
ITEM4 < don't display
....
.
.
.

What should I modify in the javascript and html?

Thanks,
RALPH

phoolz
07-08-2009, 12:21 AM
Please don't ignore...
Thanks!

BUMP

ddadmin
07-08-2009, 09:26 PM
Hmm inside the .js file, try changing the line:


for (var i=0; i<feeds.length; i++){

to:


for (var i=1; i<2; i++){

In your invocation code on your HTML page itself, you should also make sure filterfeed(), if invoked, is set to just 1:


feedinstance.displayoptions("label datetime snippet") //show the specified additional fields
feedinstance.setentrycontainer("div") //Display each entry as a DIV
feedinstance.filterfeed(1) //Show 1 entries, sort by label
feedinstance.init() //Always call this last