How to refresh the whole browser window?
Hello, how can I refresh the whole browser window (with different frames) within a DTML method, or a Python script? Thank you Fritz Troester
This is an HTML/DHTML question, really. First, there's no way to push a refresh at someone. What you want to do, ultimately, is set up the client to request new pages in response to some trigger. One approach is to figure out the Javascript code that would do that for your particular frame layout, figure out what event should trigger the refresh and provide the relevant code at your user. Any such refresh is going to happen client-side as a result of a client-side event and will be subject to client support. A slightly more involved (but more predictable) approach is you can structure you frameset document to provide different pages based on a passed querystring. Target all links to this frameset document and thus any click could create a change in what's displayed in an arbitrary number of frames. By itself, this won't assure a *refresh* of the frame content, but a deft application of HTTP headers, javascript, or url munging should pretty much do the trick. HTH, Dylan At 11:15 AM 2/19/2003, F. Troester wrote:
Hello,
how can I refresh the whole browser window (with different frames) within a DTML method, or a Python script?
Thank you Fritz Troester
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hi, On Wed, 19 Feb 2003 20:15:58 +0100 "F. Troester" <troester@fh-heilbronn.de> wrote:
Hello,
how can I refresh the whole browser window (with different frames) within a DTML method, or a Python script?
You mean on a regular basis? response.setHeader('refresh','10; url=http://next/url') means go to url in 10 seks. If you ommit "url", the refresh goes to the same url, e.g. the current page es reloadet. If you want it server-driven, you can experiment mit response.write() and multipart documents. But this does not work with every browser and is not easy to maintain. HTH Tino Wildenhain
participants (3)
-
Dylan Reinhardt -
F. Troester -
Tino Wildenhain