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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Paul DeBruicker
Hi -

How can I save the html created by a render method as a string which I
can access in another method?

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.



Thanks

Paul
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Get the html created by a render method to use as a string in another method

Lukas Renggli
> 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
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside