Hi,
I am trying to show news feed items from an RSS feed inside a web content tile in an online dashboard.
If I don't refresh the content it works without problems. When I add the location.reload part at the end to refresh the contents or use meta data refresh the tile turns to blank after the refresh.
I am new to java script and will be grateful if someone suggests a solution to this.
Thanks,
<script type = "text/JavaScript">
function load_js()
{
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.src='//rss.bloople.net/?url=http%3A%2F%2Frss.cnn.com%2Frss %2Fcnn_latest.rss&detail=-1&limit=10&showtitle=false&type=js';
head.appendChild(script);
}
load_js();
setTimeout(function() {
location.reload();
}, 5000);
</script>