Reply to Re: Ways to force a page refresh?

Your name:

Reply:


Posted by J.O. Aho on 05/10/07 20:20

Dave Boland wrote:
> I'm doing some work on a data acquisition system for temperature
> sensors. The displayed readings don't change much over time, so what I
> would like to do is to force a page refresh only when the data changes
> by 5% or more, or when the temperature is over a limit.

JavaApplet, see
http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html


> So far my options seem to be frequent page refreshes using a meta tag,
> or using Java.

I think you mean JavaScript, which isn't at all the same thing as Java.
See this article: http://www.htmlgoodies.com/beyond/javascript/article.php/3470971


> The meta tags are a fixed time interval and may be too
> frequent (or not frequent enough)

The only way to make HTML to load a page is to let an user load a page or use
meta tag to reload in an interval, or send a http-header that tells the
browser to reload the page after a time interval or use javascript to count
down time to force the browser to reload the page.

A server can't just send a page to someone without request (of course it
could, but no browser would get the data).


--

//Aho

[Back to original 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

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