Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Software > Visualisation
Minimize Text   Default    Enlarge Text
 

Print
E-mail

How Do I Make HTML Reports Update And Refresh Automatically?


CX-Supervisor supports the generation of dynamic text and HTML reports from a static template - see "GenerateReport" script function for details.

However, Web Browsers views all pages as static pages. There is a very simple HTML trick that will force the browser to reload or "Refresh" the HTML report that would then show any updates, assuming GenerateReport had been called again e.g. On Condition when the data changes.

To an existing HTML page add the following line. This must be inserted between the <head> and </head> markers:

<meta http-equiv="refresh" content="5; url=Report.htm">
 


This will force the page to be reloaded, every 5 seconds. The value after the content= (e.g. "5") is the refresh rate in seconds. Be aware that 5 seconds may practically be the fastest update, as some pages may take several seconds to download. Also the value after the url= is the name of the page to refresh.
 




Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2008-10-17
Modified 2008-12-10
Views 2733

 

You are not logged in.