[Zope] RESPONSE.redirect

Markus Kemmerling markus.kemmerling@mediaweb.at
Tue, 30 Jan 2001 10:09:43 +0100


As already noticed by ender:

<META http-equiv="refresh" content="5; 
         http://www.acme.com/newpage">

This is neither part of HTMl 4 nor the HTTP-RFC. Automatic page refresh is deprecated by the W3C. But it works with all browsers I know.

Markus Kemmerling

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Oliver Vecernik
> Sent: Tuesday, January 30, 2001 7:48 AM
> To: Max M
> Cc: zope@zope.org
> Subject: Re: [Zope] RESPONSE.redirect
> 
> 
> Max M wrote:
> > 
> > From: ov@zope.org Oliver Vecernik
> > 
> > >I'd like to show a page and after a few seconds I'd like to redirect to
> > >another page. If I simply add <!--#call "RESPONSE.redirect"--> it is
> > >done immediately. How can I achieve a delay of a couple of seconds?
> > 
> > First you should send the page you want to show, then you 
> should redirect to
> 
> That's what I did.
> 
> > a page with a delay. Probably you should write it in an external Python
> > method.
> 
> How can this be done? Can you give me an example?
> 
> > 
> > That page should then redirect to the target page.
> > 
> > Or you could drop the middle page and build the delay into the 
> target page.
> > That is stupid though if it is also accesed from elsewhere than 
> the first
> > page you want shown.
> > 
> > Or you could make a delay in JavaScript and after that do a
> > self.document.src = "new/url"
> 
> I've forgotten to mention: Browser can only display HTML 3.2 and *no*
> JavaScript. Thus it should be done on server side.
> 
> Oliver
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>