View Full Version : Displaying RSS feeds using SAG Scroller: Google API error
hicks
12-02-2015, 11:58 AM
1) Script Title: Displaying RSS feeds using SAG Scroller
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/sagscroller_suppliment.htm
3) Describe problem: Gives error when trying to load API from Google
ajfmrf
12-02-2015, 12:46 PM
please post a link to a working version of the problem page for someone to look at in order to help
hicks
12-02-2015, 01:24 PM
please post a link to a working version of the problem page for someone to look at in order to help
It gives error on my site but I disabled the rss ticker, but if you click the link I gave in first post you can see the error messages too.
amyloo
12-02-2015, 01:53 PM
One of my widgets went dark just to today, too. Is this one out of date? gAjax RSS Feeds Displayer v2.0 (hosted) http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm The Google API linked from that page is dead https://developers.google.com/feed/v1/?csw=1
Here's my widget: http://www.safetyandhealthmagazine.com/ext/resources/files/thismonthin/200.htm
Thanks for any advice on how to fix or replace with something just as easy.
Amy
amyloo
12-02-2015, 02:15 PM
Actually, I've already replaced the renderer in that 200.htm file above.
The original widget with the problem now is here: http://www.safetyandhealthmagazine.com/ext/resources/files/thismonthin/200-original.htm
hicks
12-02-2015, 04:46 PM
I'm reading in twitter that Google API feed reader is gone forever so I guess its time to look for an alternative. Damn I liked that script. Any DD dev here with an alternative or fix? Wolud be very appreciated
ajfmrf
12-02-2015, 06:46 PM
please accept my apology,I mistakenly thought you were saying your usage of the script was having problems not the original script.Next time I will have to be more careful....
Etherist
12-02-2015, 11:41 PM
Newbie here:
I am having trouble in getting the RSS Displayer code working ... I did have it working 2 days ago but now it won't pull in the RSS feeds at all.
I am only using the example code supplied at the moment, as below:
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi">
</script>
<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex18/gfeedfetcher.js">
/***********************************************
* gAjax RSS Feeds Displayer- (c) Dynamic Drive (www.dynamicdrive.com)
* Please keep this notice intact
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<style type="text/css">
.labelfield{ /*CSS for label field in general*/
color:brown;
font-size: 90%;
}
.datefield{ /*CSS for date field in general*/
color:gray;
font-size: 90%;
}
#example1 li{ /*CSS specific to demo 1*/
margin-bottom: 4px;
}
#example2 div{ /*CSS specific to demo 2*/
margin-bottom: 5px;
}
#example2 div a{ /*CSS specific to demo 2*/
text-decoration: none;
}
#example3{ /*CSS specific to demo 3*/
width: 600px;
padding: 4px;
border: 1px dashed gray;
}
#example3 p{ /*CSS specific to demo 3*/
margin-bottom: 2px;
}
code{ /*CSS for insructions*/
color: red;
}
</style>
</head>
<body>
<h3>Example 1: (Single RSS feed, 10 entries, "<code>date</code>" field enabled, sort by <code>title</code>)</h3>
<script type="text/javascript">
var cssfeed=new gfeedfetcher("example1", "example1class", "")
cssfeed.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
cssfeed.displayoptions("date") //show the specified additional fields
cssfeed.setentrycontainer("li") //Display each entry as a list (li element)
cssfeed.filterfeed(10, "title") //Show 10 entries, sort by date
cssfeed.init() //Always call this last
</script>
<br /><br />
<h3>Example 2: (Two RSS feeds, 6 entries, "<code>label"</code>, "<code>datetime</code>", and "<code>snippet</code>" fields enabled, sort by <code>label</code>)</h3>
<script type="text/javascript">
var socialfeed=new gfeedfetcher("example2", "example2class", "_new")
socialfeed.addFeed("Slashdot", "http://rss.slashdot.org/Slashdot/slashdot") //Specify "label" plus URL to RSS feed
socialfeed.addFeed("Digg", "http://digg.com/rss/index.xml") //Specify "label" plus URL to RSS feed
socialfeed.displayoptions("label datetime snippet") //show the specified additional fields
socialfeed.setentrycontainer("div") //Display each entry as a DIV
socialfeed.filterfeed(6, "label") //Show 6 entries, sort by label
socialfeed.init() //Always call this last
</script>
<br /><br />
<h3>Example 3: (Three RSS feeds, 8 entries, "<code>datetime</code>" and "<code>snippet</code>" fields enabled, sort by <code>date</code>)</h3>
<script type="text/javascript">
var newsfeed=new gfeedfetcher("example3", "example3class", "_new")
newsfeed.addFeed("BBC", "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml") //Specify "label" plus URL to RSS feed
newsfeed.addFeed("MSNBC", "http://www.msnbc.msn.com/id/3032091/device/rss/rss.xml") //Specify "label" plus URL to RSS feed
newsfeed.addFeed("CNN", "http://rss.cnn.com/rss/cnn_topstories.rss") //Specify "label" plus URL to RSS feed
newsfeed.displayoptions("datetime snippet") //show the specified additional fields
newsfeed.setentrycontainer("p") //Display each entry as a paragraph
newsfeed.filterfeed(8, "date") //Show 8 entries, sort by date
newsfeed.init() //Always call this last
</script></body>
</html>
RSS Feeds
Twitter
Facebook
FAQs
Awards
Usage Terms
Contact
All pointers as to what the problem is would be gratefully received.
Cheers
Etherist
12-02-2015, 11:49 PM
Hmmm ... seems Google has shut down this API:
https://developers.google.com/feed/forum
Etherist
12-02-2015, 11:54 PM
And Yahoo Pipes is also closed down ... so we need to keep on looking :-(
ddadmin
12-03-2015, 12:33 AM
I'm looking at Yahoo yql https://developer.yahoo.com/yql/ as a possible replacement for the API that power RSS related scripts on DD. Playing with some code now.
Etherist
12-03-2015, 01:11 AM
Looks interesting :-)
I also came across this ... doesn't use an API but ...
http://feed2js.org/index.php?s=build
Cheers
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.