Hi Alberto,
On Dec 5, 2006, at 4:16 AM, Alberto Brosich wrote:
I have a form builded with cforms and controlled by a flowscript.
This form contains an applet and I need to retrieve in the flowscript
some values from it.
do this:
(1) Define a widget to contain the value
<fd:field id="foo">...
(2) In your form template:
<ft:widget id="foo">
<fi:styling type="hidden"/> <!-- don't display this widget -->
.
.
.
<script type="text/javascript"><![CDATA[
forms_onsubmitHandlers.push (
{
forms_onsubmit : function()
{
// Get the data from the applet, and stuff it into the .value of
the HTML <input>
// that corresponds to widget "foo", I think it has
id="foo:input", you can look at the HTML
// source in your
browser to confirm that...
}
}
);
]]></script>
HTH,
—ml—
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]