You are here: Re: How do I get a small part of my page to repeatedly refresh? « All PHP « IT news, forums, messages
Re: How do I get a small part of my page to repeatedly refresh?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация