I'm running a webpage dashboard on a TV on the production floor of our factory so workers can see their live uptime, scrap etc.
I need the page to refresh when new data is available.
I want to load a page in a hidden iframe every x seconds, if the iframe is blank then do nothing but if there is a URL in the iframe then load that URL in the main page.
The Main page dashboard_Machine3.html calls a page in a hidden iframe newdata_Machine3.html every 10 seconds. If it sees that the newdata_Machine3.html page is blank, then nothing is done. If newdata_Machine3.html contains text eg "dashboard_Machine3.html" or "fire_alarm.html" then load that page in the main window.
This way I can jump to another screen if there is a critical problem somewhere or refresh that same page if there is new data to display.
-- Sorry if I wasn't clear, its a tricky one to explain :confused:
Is this possible?