Thank you very much for your replies.<div>Evidently there&#39;s still quite a few basic things I don&#39;t know about ajax / jQuery.  </div><div>What is (conceptually) #serializeForm, in what situations should be used?</div>
<div>By the way, if I try adding this simiple onChange: to the radio buttons, I still don&#39;t get the callbacks&#39; block to be called.</div><div><br></div><div>html radioButton </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>group: group;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>callback: [self newSimulationTemplate: template];</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>onChange: (html jQuery ajax serializeForm);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>with: [</div><div>.....</div><div><br></div><div>May be Lukas meant something different?</div><div>Cheers</div><div><br></div><div><br></div><div>r</div><div>
<br></div><div><br></div><div><div class="gmail_quote">On Mon, Dec 28, 2009 at 9:57 AM, Lukas Renggli <span dir="ltr">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt; I think if you look in JQFormFunctionalTest&#39;s<br>
&gt; #renderLabel:control:model:on:, you&#39;ll see that it is outputing<br>
&gt; javascript that serializes the form fields... seems kind of<br>
&gt; complicated though for what you want. I imagine you can just do<br>
&gt; something like (untested):<br>
<br>
</div>Yeah, this is a bit complicated because it tries to render all<br>
possible form controls using the same method.<br>
<div class="im"><br>
&gt; html radioButton<br>
&gt;   group: group;<br>
&gt;   onChange: (html jQuery ajax callback: [ ... ]);<br>
&gt;   with: [...]<br>
<br>
</div>The simplest is if you serialize the complete form. For example if you<br>
register the following script for change events on each form element<br>
<br>
     html jQuery ajax serializeForm<br>
<br>
you will trigger all callbacks of the enclosing form whenever<br>
something changes, essentially keeping the form persistent all the<br>
time.<br>
<br>
Lukas<br>
<font color="#888888"><br>
--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><br>
</font><div><div></div><div class="h5">_______________________________________________<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" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br></div>