I am using some pages from node red ui embedded on another system(2) using iframe.
I made a script that reloads the page every 60s so the iframe does not cache..
My problem now is that when i change anything in node red and deploy the page in the iframe in system 2 gets changed to the node red ui start page and does not reload to the correct page until i refresh my browser.. This will be a big problem since the browser will run on a smart-tv..
I use this in a template node for reload the page
In system 2 i use an iframe with http://dashboard.mycompay.se:1880/ui/#!/1
1 is my hidden tab i want to show.
<script>
if (window.top!=window.self){
// In a Frame or IFrame
document.body.classList.add('iframed')
}
$(document).ready(function() {
// auto refresh page after 60 second
setInterval('refreshPage()', 60000);
});
function refreshPage() {
location.reload();
}
</script>
<style>
.iframed #toolbar {
display: none;
}
</style>
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.