[Seaside] Smalltalk Variable into CSS Style Method

dirk newbold dirkdirk at gmail.com
Thu May 10 19:37:45 UTC 2007


In an attempt to copy the MySpace effect where a user controls the CSS of
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 per 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?* *>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070510/334adc5f/attachment.htm

More information about the seaside mailing list