[Seaside] getting a single value through jQuery

Richard Durr richard.durr at googlemail.com
Tue Oct 6 11:54:51 UTC 2009


Hello,
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:

html select
  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. ];
  selected: selectedColor;
  addAll: colors;
  labels: [:item | item value.].

But this does not seem to work, since nothing is happening.
Can anybody help?

RD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20091006/94624ef9/attachment.htm


More information about the seaside mailing list