[Seaside] Smalltalk Variable into CSS Style Method

Sylvain Pralon sylvain.pralon at gmail.com
Thu May 10 20:59:45 UTC 2007


I confirm what Boris said,
I already did stuff like that and it works great !

Sylvain


2007/5/10, Boris Popov <boris at deepcovelabs.com>:
>
> MyComponent>>style
> ^'.testArea {background-color: ', self session user preferredColor,
> ';}'
>
> Hope this helps,
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> boris at deepcovelabs.com
>
> CONFIDENTIALITY NOTICE
>
> 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
> attachments.
>
> 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
> 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? *>
> > }
> >
> > Cheers,
> >
> > Dirk
> >
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070510/00d9a15d/attachment.htm


More information about the seaside mailing list