[Seaside] Get the html created by a render method to use as a string in another method

Lukas Renggli renggli at gmail.com
Mon Feb 1 17:34:58 UTC 2010


> Say I have this:
>
> renderContentOn: html
>
> html anchor
>        url: 'http://www.google.com';
>        with: 'Google'.
>
>
> I'd like to get the string
>
> '<a href="http://www.google.com'>Google</a>'
>
> to use as part of the label in the jQuery tabs add:label: method.

WARenderCanvas builder
     render: [ :html | html render: self ]

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list