Hi, Please can you tell me, if it is possible with Nevow (does it require LivePage as well?) to force all browsers which are viewing a web page to reload their contents if the server changes this page? I.e., to force a browser to immediately refresh the page whenever it is changed on server. Non-regularly. E.g. live statistics - a server collects data and visualize them by an image. Everytime it gets something new, it re-creates the image. And I would like that every user currently being on this page will see the change immediately. I'll be glad for any help, hint, tip, strategy, ... Thank you very much.
On Sun, 28 Nov 2004 05:16:12 +0100, rednelb <rednelb@chello.sk> wrote:
Hi, Please can you tell me, if it is possible with Nevow (does it require LivePage as well?) to force all browsers which are viewing a web page to
It _requires_ LiveEvil. Just use mind.sendScript("window.location.reload();") then. -- Sridhar R - http://cs.annauniv.edu/~rsridhar Blog: http://www.livejournal.com/~sridharinfinity
On Sun, 28 Nov 2004 05:16:12 +0100, rednelb <rednelb@chello.sk> wrote:
Hi, Please can you tell me, if it is possible with Nevow (does it require LivePage as well?) to force all browsers which are viewing a web page to
It _requires_ LiveEvil. Just use mind.sendScript("window.location.reload();") then.
The above is correct although refreshing the whole page may be like taking an axe to the problem. Sridhar, I mean no offence by that - you answered the question that was asked. LiveEvil is far too cool to be used to refresh the whole page ;-). LiveEvil actually allows you to update specific parts of the page; the rest of the page is left unchanged. That tends to produce a much better user experience as there is less "flicker" on the page. The main demonstration of LiveEvil is chatola - included in the Nevow releases (latest is 0.3). Another LiveEvil example is the incredibly dull itsalive (.tac and .html) in sandbox/mg (available in the Nevow SVN repository). Hope this help. Cheers, Matt -- __ / \__ Matt Goodall, Pollenation Internet Ltd \__/ \ w: http://www.pollenation.net __/ \__/ e: matt@pollenation.net / \__/ \ t: +44 (0)113 2252500 \__/ \__/ / \ Any views expressed are my own and do not necessarily \__/ reflect the views of my employer.
On Sun, 28 Nov 2004 15:35:43 -0000 (GMT), Matt Goodall <matt@pollenation.net> wrote:
The above is correct although refreshing the whole page may be like taking an axe to the problem. Sridhar, I mean no offence by that - you answered the question that was asked. LiveEvil is far too cool to be used to refresh the whole page ;-).
I agree. But it must not be used for any large markup modifications. Other side-effects are difficult to save HTML to disk (at least any mozilla plugin for this - save html from DOM) -- Sridhar R - http://cs.annauniv.edu/~rsridhar Blog: http://www.livejournal.com/~sridharinfinity
Sridhar R & Matt Goodall, I thank you very much! Sridhar R wrote:
On Sun, 28 Nov 2004 15:35:43 -0000 (GMT), Matt Goodall <matt@pollenation.net> wrote:
The above is correct although refreshing the whole page may be like taking an axe to the problem. Sridhar, I mean no offence by that - you answered the question that was asked. LiveEvil is far too cool to be used to refresh the whole page ;-).
I agree. But it must not be used for any large markup modifications. Other side-effects are difficult to save HTML to disk (at least any mozilla plugin for this - save html from DOM)
participants (3)
-
Matt Goodall
-
rednelb
-
Sridhar R