Yes, you serialize the form which means it involves both checkboxes. On your scenario both callbacks should be triggered: the checked one with true, the unchecked with false.<br><br>Btw, you do not need the IDs. For the AJAX just use (html jQuery ajax serializeForm). You don't want to load anything into the checkbox.<br>
<br>Lukas<br><br>On Saturday, 24 September 2011, Alexander Lazarević <<a href="mailto:laza@blobworks.com">laza@blobworks.com</a>> wrote:<br>> Hi!<br>><br>> I'm using something like the following in my code:<br>
><br>> renderContentOn: html<br>> | id |<br>> html form: [<br>> id := html nextId.<br>> html checkbox<br>> id: id;<br>> onChange: (html jQuery id: id) load serializeForm;<br>
> value: self isChecked;<br>> callback: [:value | value inspect].<br>> html text: 'Check me'.<br>> id := html nextId.<br>> html checkbox<br>
> id: id;<br>> onChange: (html jQuery id: id) load serializeForm;<br>> value: self isChecked2;<br>> callback: [:value | value inspect].<br>
> html text: 'Check me 2'.<br>> ]<br>><br>> I'm surprised to see that both callbacks get triggered even if I only<br>> check one checkbox. Is this on purpose and expected? According to<br>
> Metacello I'm using Seaside 3.0.6<br>><br>> Alex<br>> _______________________________________________<br>> seaside mailing list<br>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>><br><br>-- <br>Lukas Renggli<br><a href="http://www.lukas-renggli.ch">www.lukas-renggli.ch</a><br>