This plugin should display RSS feeds in jQuery, but I'm not getting any output following the docs .
HTML:
<div id="feeds"></div>
jQuery
$('#feeds').feeds({
feeds: {
feed1: 'http://rollingstonesofficial.tumblr.com/rss'
}
});
Here it is in action: http://jsfiddle.net/XmY9d/30/
Is there somethign I'm missing?
UPDATE 1
Thanks for your responses guys. I should say that this problem also occurs locally in a Chrome extension.
UPDATE 2
These are the errors I get in the console:
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:".
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:".
Both occur in jquery.feeds.min.js on line 17.
You cannot load file from raw.github.com
in jsFiddle
.
So, instead of including your plugin through raw Github, you can use
<script src="http://camagu.github.io/jquery-feeds/jquery.feeds.js"></script>
or you can put it directly inside Javascript
panel.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.