Hi, this seems like it should be simple, sorry if it's a FAQ :-/...
I have a submit widget, which as usual is transformed to
<input type="submit" onclick="forms_submitForm(this, 'yes'); return
false" ... />
Now, suppose we want to attach some typical client-side action as an
onclick handler, such as "debouncing" a button against double clicks,
or popping up a confirmation dialog. It seems like the best than can
be done is to brute-force it, i.e. write my own onclick handler that is
CForms-aware (i.e., calls forms_submitForm() to submit the form). But
even if I do that, I end up with two onclick attributes in the HTML.
At the very least, shouldn't forms-field-styling.xsl not write the
onclick attribute if there is already one in the document source? Or
am I totally going about this in the wrong way?
Thanks,
—ml—
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]