From: Jamie C. <jca...@we...> - 2004-09-03 22:25:45
|
On Fri, 2004-09-03 at 19:25, Hugo Cornelis wrote: > Hi, > > I need to write a webmin module that automatically > refreshes the display every x seconds. Before I try > to hack something together using javascript, I thought > it was a good idea to ask people on this list if (1) > webmin supports this scenario, and (2) if perhaps > other people already have written such a module and > are willing to share their experiences. The trick I use is to set the Refresh: HTTP header, with code like this: print "Refresh: 5\n"; &header("Your title", ""); This will tell the browser to refresh the page every 5 seconds, and it more reliable that Javascript. - Jamie |