[Seaside] getting a single value through jQuery
richard.durr at googlemail.com
Tue Oct 6 11:54:51 UTC 2009
I'd like to set the background-color of a parent element that contains a
selectbox using ajax without replacing the whole. I tried to load the value
through "ajax html:" like so:
onChange: (html jQuery ajax serialize: html jQuery this) ,
((html jQuery this parent: '.model' ) cssAt: 'background-color' put:
(html jQuery ajax html: [:r | r text: 'red' ]));
callback: [ :value | aModelObject color: value key. ];
labels: [:item | item value.].
But this does not seem to work, since nothing is happening.
Can anybody help?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside