<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Two things:<div><br></div><div>You're calling #serializeForm, which serializes the nearest form, which would therefore serialize all elements in the form.</div><div><br></div><div>Look at JQAjax #serializeThis comment. Checkboxes require a #serializeThisWithHidden call.</div><div><br></div><div>RS<br><div><br><div>> From: laza@blobworks.com<br>> Date: Sat, 24 Sep 2011 19:31:14 +0200<br>> To: seaside@lists.squeakfoundation.org<br>> Subject: [Seaside] checkbox callbacks<br>> <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>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div></div></div>                                            </div></body>
</html>