Smalltalk Variable into CSS Style Method

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

Smalltalk Variable into CSS Style Method

dirk newbold
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
Reply | Threaded
Open this post in threaded view
|

RE: Smalltalk Variable into CSS Style Method

Boris Popov, DeepCove Labs (SNN)
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
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
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk Variable into CSS Style Method

Sylvain pralon
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
^'.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:[hidden email]
> [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
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


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

Re: Smalltalk Variable into CSS Style Method

dirk newbold
Cheers,
 
Thanks very much.

 
On 5/10/07, Sylvain Pralon <[hidden email]> wrote:
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
^'.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
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://tinyurl.com/r7uw4" target="_blank"> 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:[hidden email]
> [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
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]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank"> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
Seaside mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside