Results 1 to 2 of 2

Thread: gfeedfetcher Loads 2 feeds but not one by itself

  1. #1
    Join Date
    Mar 2015
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default gfeedfetcher Loads 2 feeds but not one by itself

    1) Script Title: gfeedfetcher

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...feedfetcher.js

    3) Describe problem:

    I have two feeds, Comptroller News and Announcements. Some articles from the first feed are sent to the second as well. That means if I display them both, I get some duplicate items.

    If I display only "Comptroller News" I see all the items and no duplicates.

    So one would expect that if I displayed only the subset (the Announcments feed) I would get only that one feed.
    But instead I get the "Feed Loading" message forever.

    I added an MSNBC feed, took out the Comptroller News Feed and added the Announcements feed and Announcements comes up.

    I'm at a loss.

    Link: http://comptroller.texas.gov/feedtest.php

    Code:
    <script type="text/javascript">
    
    var newsfeed=new gfeedfetcher("feed", "news")
    newsfeed.addFeed("Comptroller News", "https://public.govdelivery.com/topics/TXCOMPT_1007/feed.rss") //Specify "label" plus URL to RSS feed
    newsfeed.addFeed("Announcements", "https://public.govdelivery.com/topics/TXCOMPT_1033/feed.rss") //Specify "label" plus URL to RSS feed
    newsfeed.displayoptions("date")
    newsfeed.setentrycontainer("li") //Display each entry as a list item
    newsfeed.filterfeed(8, "label") //Show 8 entries, sort by label
    newsfeed.init() //Always call this last
    
    			</script>
    Last edited by jscheuer1; 05-14-2015 at 11:58 PM. Reason: format code

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,496
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It's apparently a bug in the script. If you set the number of items to retrieve higher than the actual number of items available, it causes an error. I happen to have a slightly different version and it works even with that, so why don't you try it (right click and save as):

    gfeedfetcher.js

    The browser cache may need to be emptied, and/or the page refreshed to see changes.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    RioBrewster (05-15-2015)

Similar Threads

  1. gFeedFetcher Individual CSS Stylings for RSS Feeds
    By TylerCHurst in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-07-2013, 06:39 AM
  2. gAjax RSS Feeds Displayer - Edit Feeds Shown
    By dsol828 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-01-2012, 07:11 PM
  3. gAjax RSS Feeds Displayer - ignore broken feeds?
    By kblm in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-24-2012, 10:18 PM
  4. Replies: 0
    Last Post: 09-05-2011, 09:18 AM
  5. night loads index2 daytime loads index1
    By llr in forum JavaScript
    Replies: 1
    Last Post: 01-29-2009, 05:37 AM

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
  •