Re: [webmin-devel] automatic refresh using javascript
Jamie Cameron <[email protected]>
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
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
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel