|
Posted by J.O. Aho on 07/11/06 14:30
Robert S wrote:
> I have a rather complex web page which acts as a client to a FAX
> server. At the bottom I would like to display information regarding
> the server status - this involves running a shell command and printing
> the output to the page.
>
> I would like this section at the bottom of the page to refresh every
> (say) 5 seconds, and the rest of the page not to refresh.
You have to split the page into multiple parts, with other words frames.
> I could do this with frames and something like <meta
> http-equiv="REFRESH" content="300;URL=bottom.php" />, but this would
> screw up my scrollbars and would require 3 source files in the place of
> one.
IFRAME and on the page/script you load in that IFRAME you insert meta tag or
use header() to do the refresh each X second.
> Is there a more elevant way of doing this? Javascript would be OK but
> I suspect that this might not be possible.
You could make a java-applet (java != javascript), which checks up the the
stuff you want to keep up to date.
//Aho
Navigation:
[Reply to this message]
|