avi.bryant at gmail.com
Wed Mar 16 14:11:59 CET 2005
On Wed, 16 Mar 2005 07:58:01 -0500, Bany, Michel <mbany at cincom.com> wrote:
> This gave me the idea to reimplement defaultAction: so that it provides
> both techniques.
> defaultAction: actionBlock
> inputWithType: 'hidden'
> named: (self callbacks registerDefaultActionCallback:
> self submitButtonWithAction: actionBlock image: self
> With this new implementation, the first example (above) works as
> and equally with all three browsers.
Ah, that's interesting, thanks. The pain of multi-browser support...
Since this will only work if placed at the top of the form, however, I
suggest that we deprecate #defaultAction: as a standalone method, and
encourage #formWithDefaultAction:do: instead.
More information about the Seaside