Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
ealtinta
New Member

web content tile refresh does not work

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>

1 ACCEPTED SOLUTION
ealtinta
New Member

I found a solution. The following code works.

 

<!DOCTYPE html>
<html>
<head>


<style type="text/css">
body {
margin: 0;
overflow: hidden;
}
#iframe1 {
position:absolute;
left: 0px;
width: 100%;
top: 0px;
height: 100%;
}
</style>

</head>
<body>

<iframe id="iframe1" src="//rss.bloople.net/?url=..........detail=-1&limit=10&showtitle=false&type=html" frameborder="0"></iframe>

<script>
window.setInterval("reloadIFrame();", 60000);
function reloadIFrame() {
document.getElementById("iframe1").src="//rss.bloople.net/?url=.........detail=-1&limit=10&showtitle=false&type=html";
}
</script>

</body>
</html>

View solution in original post

3 REPLIES 3
ealtinta
New Member

I found a solution. The following code works.

 

<!DOCTYPE html>
<html>
<head>


<style type="text/css">
body {
margin: 0;
overflow: hidden;
}
#iframe1 {
position:absolute;
left: 0px;
width: 100%;
top: 0px;
height: 100%;
}
</style>

</head>
<body>

<iframe id="iframe1" src="//rss.bloople.net/?url=..........detail=-1&limit=10&showtitle=false&type=html" frameborder="0"></iframe>

<script>
window.setInterval("reloadIFrame();", 60000);
function reloadIFrame() {
document.getElementById("iframe1").src="//rss.bloople.net/?url=.........detail=-1&limit=10&showtitle=false&type=html";
}
</script>

</body>
</html>

v-diye-msft
Community Support
Community Support

Hi @ealtinta 

 

Based on the test, we've encounter the same issue as yours. will do further research nand keep you updated. 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Thank you very much. I am waiting for your answer.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.