[Seaside] Submitting a form from a WAImageButtonTag
m.bany at wanadoo.fr
Fri Feb 23 08:05:33 UTC 2007
Carl Gundel a écrit :
> Is it possible to do something like this with an image button?
> html imageButton
> callback: [ self doStuff ];
> url: self buttonUrl;
> submitFormNamed: 'myform'
> It works with anchors, but not image buttons.
If the image button is enclosed in the form, then it will submit the form,
therefore image button does not implement #submitFormName:
Maybe you are trying to place your image button outside the form or
even trying to place it inside another form with the idea of submitting
two forms or more (not a recommended practice IMO)^then you
may want to try using #onClick: like in the check box implementation
More information about the Seaside