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 [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 [hidden email] 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: [hidden email] [mailto:seaside- > [hidden email]] 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 > Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
I confirm what Boris said,
I already did stuff like that and it works great !
Sylvain
2007/5/10, Boris Popov <[hidden email]>:
MyComponent>>style _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Cheers,
Thanks very much.
On 5/10/07, Sylvain Pralon <[hidden email]> wrote:
_______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |