[Seaside] change element property client side

Lukas Renggli renggli at gmail.com
Tue Jul 3 19:28:41 UTC 2007


> What is the best way to achieve this?

Using Scriptaculous. For example to toggle the CSS class 'zork' on an
element named 'foo':

html anchor
    onClick: (html element
        id: 'foo';
        toggleClassName: 'zork');
    with: 'add class'

Have a look at the class SUElement/SUFormElement for other methods.
Also check out the senders of #element and #formElement, there are
many tests and a few examples.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list