View Full Version : gfeedfetcher Loads 2 feeds but not one by itself

05-14-2015, 09:39 PM
1) Script Title: gfeedfetcher

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

<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.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


05-15-2015, 12:28 AM
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):


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