Is it possible to call the client from the server with nevow/athena
Hi and happy new year, is it possible to call the client from the server with nevow/athena like nevow/livepage? I have take a look to the source, but I didn't unterstand it quite well. Any help would be great. Thanks Martin
On Sun, 1 Jan 2006 18:26:03 +0100, Martin Möllenbeck <martin@moellenbecks.de> wrote:
Hi and happy new year,
is it possible to call the client from the server with nevow/athena like nevow/livepage?
I have take a look to the source, but I didn't unterstand it quite well.
Both LivePage and LiveFragment have a "callRemote" method which will invoke some JavaScript function on the client. The "widgets" example demonstrates this. You can find the Python for this example at <http://divmod.org/trac/browser/trunk/Nevow/examples/athenademo/widgets.py> and the JavaScript at <http://divmod.org/trac/browser/trunk/Nevow/examples/athenademo/widgets.js>. Hope this helps, Jean-Paul
thanks, that exactly what I am looking for. Great work "twisted" and "nevow" ;-). I am happy too use it. Martin Am 01.01.2006 um 18:36 schrieb Jean-Paul Calderone:
On Sun, 1 Jan 2006 18:26:03 +0100, Martin Möllenbeck <martin@moellenbecks.de> wrote:
Hi and happy new year,
is it possible to call the client from the server with nevow/ athena like nevow/livepage?
I have take a look to the source, but I didn't unterstand it quite well.
Both LivePage and LiveFragment have a "callRemote" method which will invoke some JavaScript function on the client. The "widgets" example demonstrates this. You can find the Python for this example at <http://divmod.org/trac/browser/trunk/Nevow/examples/ athenademo/widgets.py> and the JavaScript at <http://divmod.org/ trac/browser/trunk/Nevow/examples/athenademo/widgets.js>.
Hope this helps,
Jean-Paul
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
participants (2)
-
Jean-Paul Calderone
-
Martin Möllenbeck