[Seaside] Smalltalk Variable into CSS Style Method

Boris Popov boris at deepcovelabs.com
Thu May 10 19:41:24 UTC 2007

 ^'.testArea {background-color: ', self session user preferredColor,

Hope this helps,


DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any

Thank you.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of dirk newbold
> Sent: Thursday, May 10, 2007 12:38 PM
> To: Seaside - general discussion
> Subject: [Seaside] Smalltalk Variable into CSS Style Method
> All,
> In an attempt to copy the MySpace effect where a user controls the CSS
> their own page, is it possible to achieve that simply by passing a
> Smalltalk object into the CSS 'style' Method???
> I've been playing around but can't get it to work.
> For example let's say the user has set:
> testColor := '#000099'
> How do I pass that into the Style Method - I'm guessing that Smalltalk
> code must be surrounded by <* ..... *> as the 'style' Method reads as
> normal html - is this correct?.
> So if I have my divClass as follows:
> .testArea {
>      float: left;
>      border: 1px solid boack
>      background-color: <* WHAT DO I PUT IN HERE? *>
> }
> Cheers,
> Dirk

More information about the seaside mailing list