Hi I have looked through the examples and the archives but cannot find what I am looking for. I need to be able to create a piece of HTML that is updated once a second via livepage. currently my html looks like <html><head></head> <body> <span class="time"><nevow:slot name="time" /></span> </body></head></html> and the python looks like def render_time(self, context, data): context.fillSlots('time', '%s' % time.ctime()) return context.tag but I need to refresh the browser to update the time - can anyone point me in the right direction so that the time is constantly updated? Thanks John This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
On Wed July 27 2005 05:22, John Horton wrote:
Hi I have looked through the examples and the archives but cannot find what I am looking for. I need to be able to create a piece of HTML that is updated once a second via livepage. currently my html looks like
<html><head></head>
I *think* you are missing the glue that makes livepage "live": <html> <head> <script nevow:render="liveid"/> <script nevow:render="liveglue"/> ... </head> ... </html> Mike.
participants (2)
-
John Horton
-
Mike Pelletier