You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mark Lundquist <ml...@wrinkledog.com> on 2004/03/10 23:09:26 UTC
CForms form submission
Is the woody_submit_id hidden form control used only for the event
handlers?
What if submitting via <wd:submit> or <wd:action> used it also? If
they did, then we could add something like this:
<wd:submit id="save" action-command="x" default="true">
<wd:label>Save</wd:label>
</wd:submit>
'default="true"' in a submit or action widget would cause the
woody_submit_id <input> element to be emitted with this widget's id in
its 'value' attribute. And that might help to mitigate the heinous
form-submit-on-Enter-keypress "feature" that every browser so
helpfully, and differently, implements.
I've used this sort of technique before, by hand; but it could be built
in to CForms.
WDYT?
Mark