That worked like a charm. Building up my silly dialog from the examples, I missed the form that the jQuery dialog example don't use!<div>Sorry for the basic questions and thanks again to both.<div>Cheers</div><div><br>
</div><div>r</div><div><br><br><div class="gmail_quote">On Mon, Dec 28, 2009 at 1:00 PM, Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
No, that looks ok. Do you have a form-tag around your elements.<br>
<br>
The #serialize: method sends the form elemnts to the server and<br>
triggers the callbacks. The argument is a query selecting the elements<br>
to be serialized. The #serialize... methods are just convenience<br>
methods with the most used queries (see method comment).<br>
<font color="#888888"><br>
Lukas<br>
</font><div><div></div><div class="h5"><br>
On Monday, December 28, 2009, Ramiro Diaz Trepat <<a href="mailto:ramiro@diaztrepat.name">ramiro@diaztrepat.name</a>> wrote:<br>
> Thank you very much for your replies.Evidently there's still quite a few basic things I don't know about ajax / jQuery. What is (conceptually) #serializeForm, in what situations should be used?<br>
> By the way, if I try adding this simiple onChange: to the radio buttons, I still don't get the callbacks' block to be called.<br>
> html radioButton group: group;<br>
> callback: [self newSimulationTemplate: template]; onChange: (html jQuery ajax serializeForm);<br>
> with: [.....<br>
> May be Lukas meant something different?Cheers<br>
><br>
> r<br>
><br>
><br>
> On Mon, Dec 28, 2009 at 9:57 AM, Lukas Renggli <<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>> wrote:<br>
><br>
>> I think if you look in JQFormFunctionalTest's<br>
>> #renderLabel:control:model:on:, you'll see that it is outputing<br>
>> javascript that serializes the form fields... seems kind of<br>
>> complicated though for what you want. I imagine you can just do<br>
>> something like (untested):<br>
><br>
> Yeah, this is a bit complicated because it tries to render all<br>
> possible form controls using the same method.<br>
><br>
>> html radioButton<br>
>> group: group;<br>
>> onChange: (html jQuery ajax callback: [ ... ]);<br>
>> with: [...]<br>
><br>
> 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>
><br>
> --<br>
> Lukas Renggli<br>
> <a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><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" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><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" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br></div></div>