[Seaside] change element property client side

Leandro Pérez lperez at lifia.info.unlp.edu.ar
Tue Jul 3 21:02:08 UTC 2007



Lukas Renggli wrote:
> 
>> 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'
> 


I'm a little bit confused, i guess what you're doing in this example is to
change the css class of an element and thus, changing its style.
But what i need to do is to change an element's inherent property such as
src of img, or href in an anchor, i.e. a non-css property..
My knowledge about html and css is limited, perhaps the kind of properties
i'm trying to change can be changed with css...??




-- 
View this message in context: http://www.nabble.com/change-element-property-client-side-tf4020240.html#a11420584
Sent from the Squeak - Seaside mailing list archive at Nabble.com.



More information about the Seaside mailing list