Re: [Zope] autorefresh a web page every x minutes
--On 4. August 2006 15:32:26 +0100 Alan [EMAIL PROTECTED] wrote: Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. This is not a Zope question. Google for meta refresh tag. -aj pgpgHGnKHPBCB.pgp Description: PGP signature ___ 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 )
Re: [Zope] autorefresh a web page every x minutes
This is Client-Pull web question, not Zope related. Here is an example of what needs to be in the head of the page: meta HTTP-EQUIV=Refresh CONTENT=5; URL=http://www.foo.com/foo.html; where 5 is seconds, so 300 would be 5 minutes, and the URL is the next url, leave out URL=http://www.foo.com/foo.html to refresh the same page. Cliff Alan wrote: Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. Cheers, Alan ___ 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 )
Re: Re: [Zope] autorefresh a web page every x minutes
Thanks a lot! Cheers, Alan On 04/08/06, Joerg Baach [EMAIL PROTECTED] wrote: Hi Alan, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? head meta http-equiv=refresh content=42; template_id /head replace 42 with the number of secs to refresh, template_id with the id of the ZPT. or do a meta http-equiv=refresh tal:attributes='content string:42;; URL=${template/id}' Cheers, Joerg -- Alan Wilter S. da Silva, D.Sc. - Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ 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 )
Re: [Zope] autorefresh a web page every x minutes
Andreas Jung wrote: --On 4. August 2006 15:32:26 +0100 Alan [EMAIL PROTECTED] wrote: Dears, Is there a way of doing a particular page template (ZPT) keeping reloading/refreshing itself every x minute? I hope so. Any help would be very appreciate. Many thinks in advance. This is not a Zope question. Google for meta refresh tag. or google for real headers :-) context.REQUEST.RESPONSE.setHeader('refresh','60') for example. Regards Tino ___ 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 )