[Twisted-web] Error: nevow_clientToServerEvent is not defined
(Firefox JS Console)
dp at ulaluma.com
Wed Jun 29 11:21:25 MDT 2005
On Jun 29, 2005, at 2:32 AM, Michael M wrote:
> Firstly, I love nevow, brilliant design, really just plain brilliant.
> Thanks in advance for any help with this problem.
> # PROBLEM
> The livepage/evil example failes with this error in the Firefox JS
> # ERROR
> Error: nevow_clientToServerEvent is not defined
Sorry, that example is way out of date. livepage is still under heavy
development and has changed a lot in the last year or so. It has even
changed a lot since the last release (0.4.1). If you would like to
use livepage, I suggest you get a svn checkout of:
I have attached a simple example which works with this branch.
I hope to have livepage stabilized by the 0.5 release (bugfixes
notwithstanding). There is still quite a bit of work to be done
before this will actually happen though.
The reason nevow_clientToServerEvent was not defined in your tests is
page. In the below example, you'll notice two render directives, one
invoking "liveid" and one invoking "liveglue". The liveid is a
a LivePage. It changes every time the page is rendered. The liveglue
the liveid to allow you to have one global location for the liveglue
The other difference with this example is the ease of calling a
has been included in a page, there is a global "server" object which
written by hand, not generated automatically by the nevow page
rendering process. This makes it easier to hook up client-side event
handlers to server side methods.
One final difference in the example below is that now server-side
browser. Previously, you had to make calls on the ClientHandle object
to send scripts to the browser (which you can still do if you need
to). The new architecture instead renders the result of a server-side
now (rendering generators, rendering multiple deferreds, much safer
Hope all this helps.
-------------- next part --------------
Skipped content of type multipart/mixed
More information about the Twisted-web