[Seaside] Button w/ liveCallback for Canvas API?
Lukas Renggli
renggli at gmail.com
Mon Jan 29 15:13:47 UTC 2007
> Meanwhile, you may want to use an anchor element.
>
> html anchor liveCallback: [:h | ...]; with: 'Click me'.
> very close to
> html submitButton liveCallback: [:h | ...]; text: 'Click me'.
Or use Scriptaculous. It decouples the brush (XHTML tag) and the
JavaScript action to take. So you can either write:
html anchor
onClick: (html update
id: 'foo';
callback: [ :r | ... ]);
with: 'Click me'
or
html submitButton
onClick: (html update
id: 'foo';
callback: [ :r | ... ]);
with: 'Click me'
or even
html div
onClick: (html update
id: 'foo';
callback: [ :r | ... ]);
with: 'Click me'
for a clickable div-element. Moreover you could well replace the
onClick action with something completely different, like hiding an
element or starting an animation effect.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the Seaside
mailing list