[seaside-dev] checkbox onChange
Lukas Renggli
renggli at gmail.com
Thu Apr 8 20:55:17 UTC 2010
> 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...
Yes, see the method comment of the method #serializeThis.
JQAjax>>serializeThis
"Serialize the receiving element. Note that this might not work for
all form elements: (1) for check-boxes and multi-select lists Seaside
internally depends on an additional hidden form element that is
generated automatically, instead use #serializeThisWithHidden (2)
submit-button callbacks are ignored, instead use a normal callback to
trigger specific code evaluation."
self serialize: self jQuery this
Lukas
--
Lukas Renggli
www.lukas-renggli.ch
More information about the seaside-dev
mailing list