Spam:Spam:Re: [Seaside] onClick request
Bany, Michel
mbany at cincom.com
Wed May 23 11:41:01 UTC 2007
#urlForAction: that used to be available in the old api is also
available for the canvas api in recent 2.6/2.7
urlForAction: actionBlock
| url |
url := context actionUrl withParameter: (self callbacks
registerActionCallback: actionBlock).
^url displayString
With this method the code gets simpler
url := html urlForAction: [ .... ]
html tableRow onClick: 'window.location=' , url printString.
HTH
Michel.
> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf
> Of Lukas Renggli
> Sent: mercredi, 23. mai 2007 13:22
> To: Seaside - general discussion
> Subject: Spam:Spam:Re: [Seaside] onClick request
>
> > One could even do it without the use of Scriptaculous.
>
> Have a look at how WAAnchor creates the callback URL:
>
> url := html context actionUrl withParameter: (html callbacks
> registerActionCallback: [ .... ]).
> html tableRow onClick: 'window.location=' , url printString.
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list