[seaside-dev] checkbox onChange

Hernan Wilkinson hernan.wilkinson at gmail.com
Thu Apr 8 20:51:26 UTC 2010


Hi,
 if I have this code:

....
        aCanvas checkbox
            value: value;
            callback: [ :aValue | value := aValue ];
            onChange: (((aCanvas jQuery id: id) load serialize: (aCanvas
jQuery this)) html: [:c | ...  ]).
....

The onChange callback is executed but the checkbox callback is not
evaluated, to "value" does not change. But if I change it to

....
            onChange: (((aCanvas jQuery id: id) load serialize: (aCanvas
jQuery this parent)) html: [:c | ...  ]).
....

the checkbox callback gets evaluated before the onChange callback (as
expected). (note that I only added the message parent to serialize the
parent of the checkbox. In the example I have, the parent is a form).

This behavior is not the same for a select. The first code works ok with a
select.
Does anybody know why? It looks like serializing only the checkbox is not
enought to trigger the checkbox's callback...

Thank you
Hernan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20100408/c6644db5/attachment.htm


More information about the seaside-dev mailing list