[Seaside] JQuery dialog radio buttons

Julian Fitzell jfitzell at gmail.com
Mon Dec 28 07:32:47 UTC 2009


I think if you look in JQFormFunctionalTest's
#renderLabel:control:model:on:, you'll see that it is outputing
javascript that serializes the form fields... seems kind of
complicated though for what you want. I imagine you can just do
something like (untested):

html radioButton
   group: group;
   onChange: (html jQuery ajax callback: [ ... ]);
   with: [...]

Julian

On Sun, Dec 27, 2009 at 9:37 PM, Ramiro Diaz Trepat
<ramiro at diaztrepat.name> wrote:
> Hi there,
> I have a JQuery dialog, which is a simple form composed of radio buttons.
>  Each of those radio buttons has a #callback: block, that never gets called.
> The code that creates the radiobuttons looks something like this:
> html listItem
> with: [html radioButton
> group: group;
> callback: [self newTemplate: template];
> with: [
> html label: template name.
> html paragraph: template description]]].
>
> I saw a similar example in:
> JQFormFunctionalTest>>renderRadioButtonOn: html
> where radio buttons have a callback as well, and in this case the #callback:
> block does get called each time you change the radio button selection.
> Is there is anything particular to take care of for the callbacks to work
> inside a JQuery Dialog?
> In the example, the execution of the rendering in the #onChanged:  triggers
> the #callback: of the radio buttons?
> Thanks
>
> r
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


More information about the seaside mailing list