calling python scripts, zsql method from onclick
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 Thanks, Laura
From: "Laura McCord" <Laura.McCord@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
participants (2)
-
Jonathan Hobbs -
Laura McCord