Results 1 to 3 of 3

Thread: Need Hrlp gAjax RSS Feeds Displayer

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Need Hrlp gAjax RSS Feeds Displayer

    1) Script Title: gAjax RSS Feeds Displayer

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

  2. #2
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please don't ignore...
    Thanks!

    BUMP

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

    Default

    Hmm inside the .js file, try changing the line:

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

    Code:
    	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:

    Code:
    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
    DD Admin

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
  •