<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.14">
<TITLE>Re: [Seaside] Scriptaculous OO API</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Cool thanks!<BR>
<BR>
Cheers!<BR>
<BR>
-Boris<BR>
(Sent from a BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: The Squeak Enterprise Aubergines Server - general discussion. &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Wed Nov 22 11:22:52 2006<BR>
Subject: Re: [Seaside] Scriptaculous OO API<BR>
<BR>
&gt; html script: ((html javascript)<BR>
&gt;&nbsp; add: (SUStream on: '$(''mydiv'').style.width=&quot;50%&quot;');<BR>
&gt;&nbsp; yourself)<BR>
<BR>
Scriptaculous does not define a protocol to edit style but one to<BR>
add/remove/enumerate classes. So I suggest that you define in your<BR>
style-sheet<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .half { width: 50% }<BR>
<BR>
and then you do in Seaside:<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html script: (html element id: 'mydif'; addClassNamed: 'half')<BR>
<BR>
And this is it.<BR>
<BR>
However if you really want to mess around with styles you can do that<BR>
of course. Grab the latest version of Scriptaculous, I've added tree<BR>
new methods: #styleAt:, #styleAt:put: and #style:.<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html script: (html element id: 'mydif'; styleAt: 'width' put: '50%')<BR>
<BR>
Hope this helps,<BR>
Lukas<BR>
<BR>
--<BR>
Lukas Renggli<BR>
<A HREF="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch</A><BR>
_______________________________________________<BR>
Seaside mailing list<BR>
Seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
</FONT>
</P>

</BODY>
</HTML>