[Seaside] [Scriptaculous] Configure element's class from inside the updater?

Boris Popov boris at deepcovelabs.com
Tue Jun 27 16:17:25 UTC 2006

The following snippet seems to be working fine, but as a next step I'm trying 
to find a way to add/remove class names to a specific element corresponding to 
this checkbox,

| fid |
fid := html nextId.
(html form)
 id: fid;
  [(html checkbox)
    value: (self isSelected: row);
    callback: [:value | self select: row if: value];
      ((html updater)
         triggerForm: fid;

something along the lines of,

(self isSelected: row)
 ifTrue: [script element
          id: fid;
          addClassName: 'selected']
 ifFalse: [script element
           id: fid;
           removeClassName: 'selected']

but I'm not sure where to plug that in just yet. Any pointers would be 



DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


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

Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3370 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20060627/7925bce4/smime.bin

More information about the Seaside mailing list