[Zope] calling python scripts, zsql method from onclick

Jonathan Hobbs toolkit at magma.ca
Mon Sep 27 14:17:36 EDT 2004


From: "Laura McCord" <Laura.McCord at doucet-austin.com>
> I need three things to occur on an onclick. Is this possible and if so,
> what would the syntax be.
>
> This is what I have so far:
>
> tal:attributes="onclick string:showObject(event, '${box}');"
>
> I need to also include a call to an external method
> python:here.macAddress() and call to a zsql method here/deleteMAC

Javascript can provide a solution. You can string js routines together,
separated by semi-colons:

tal:attributes="onclick string:showObject(event, '${box}'); jsRoutine2();
jsRoutine3();"

and have the other jsRoutines invoked whatever zope routines you need.


Jonathan






More information about the Zope mailing list