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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors