[Twisted-web] Error: nevow_clientToServerEvent is not defined (Firefox JS Console)

Thomas HERVE therve at free.fr
Wed Jun 29 05:36:01 MDT 2005


Quoting Michael M <m.milvo at gmail.com>:

[snip]
> class LivePage(rend.Page):
>    docFactory = loaders.stan(
>    tags.html[
>    tags.body[
>        tags.ol[
>            tags.li(onclick=handler, name="one")["One"],
>            tags.li(onclick=handler, name="two")["Two"],
>            tags.li(onclick=handler, name="three")["Three"]
>        ]
>    ]
> ])

I think this example hasn't been updated. You'd better look after the
liveanimal.py example in the current branch.

The example working should be like this (not tested):

class MyLivePage(livepage.LivePage):
   docFactory = loaders.stan(
   tags.html[
   tags.head[
       tags.directive('liveid'),
       tags.directive('liveglue')],
   tags.body[
       tags.ol[
           tags.li(onclick=handler, name="one")["One"],
            tags.li(onclick=handler, name="two")["Two"],
            tags.li(onclick=handler, name="three")["Three"]
       ]
   ]
])

-- 
Thomas






More information about the Twisted-web mailing list