You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bryon Phinney <be...@lat-inc.com> on 2004/08/30 16:37:39 UTC
cforms - calling client side JavaScript from "onclick"
Cocoon 2.1.5.1
Cforms - definition XML and template transformer.
Tomcat 5
Question:
How can I include a call to a client side JavaScript function from the
"onclick" attribute of a radio-button through cocoon forms?
Details:
On my form the user can choose to give input in one format or another,
but not both. I want to have a radio-button group (or virtual group) to
enable or disable a certain format. If they select one format radio
button the components under the other format are disabled (via the
JavaScript function) and vice-versa.
I have already included the JavaScript in the template xml file.
Thanks
Bryon