[Seaside] Form and checkbox?
philippe.marschall at gmail.com
Wed Nov 1 08:21:17 UTC 2006
2006/11/1, Carl Gundel <carlg at libertybasic.com>:
> Is it right that a form's values can only be captured when the form's submit
> button is clicked and that
You could use AJAX.
> there can only be one submit button on a form?
There can be multiple submit buttons per form but only the callback of
the clicked one is evaluated.
>I can't have a checkbox and a button both act as a submit, but have different
> callbacks, for example?
The checkbox can have a different callback than the button. If you hit
the button, first the checkbox callback will be evaluated, then the
You could make the checkbox sumit on change (not implemented right now
but should be simple). This way the form will be submitted when the
checkbox value is changed.
> A web page can have more than one form, right? And each can have its own
> submit button?
Yes. Note that you can not nest forms.
> Sorry if these are rank beginner questions, but I am really new to web
> -Carl Gundel, author of Liberty BASIC
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
More information about the Seaside