[Seaside] Re: optionGroup -> callback does not fire

Sabine Knöfel sabine.knoefel at gmail.com
Sun Apr 21 13:29:41 UTC 2013


What is a slime rule?

On Sun, Apr 21, 2013 at 3:27 PM, Philippe Marschall [via Smalltalk] <
ml-node+s1294792n4682828h63 at n4.nabble.com> wrote:

> On Sun, Apr 21, 2013 at 1:12 PM, Sabine Knöfel <[hidden email]<http://user/SendEmail.jtp?type=node&node=4682828&i=0>>
> wrote:
>
> > Hi Max,
> >
> > thank you. There is >>beSubmitOnChange.
> > But I dont want the whole page to be submitted.
> >
> > But you gave me the hint!
> >
> > My error was, that I added onChange AFTER the with: block...and that
> does
> > not work.
> >
> > This works:
> >     theInput1
> >         id: mid;
> >         selected: self currentDay expensesCountryDay;
> >         callback: [ :value | self countryDay: value inspect  ];
> >         onChange: (html prototype evaluator
> >                         triggerForm: self countryDaySelectionFormID;
> >                         return: false);
> >         with: [ .....] ].
> >
> > This doesNOT work
> >     theInput
> >         id: mid;
> >         selected: self currentDay expensesCountryDay;
> >         callback: [ :value | self countryDay: value inspect ];
> >         with: [ .....  ];
> >         onChange:
> >                 (html prototype evaluator
> >                         triggerForm: self countryDaySelectionFormID;
> >                         return: false).
>
> This is a common mistake, I believe we even have a Slime rule for this.
>
> Cheers
> Philippe
> _______________________________________________
> seaside mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4682828&i=1>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815p4682828.html
>  To unsubscribe from optionGroup -> callback does not fire, click here<http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4682815&code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDQ2ODI4MTV8MTA0OTM5MTYx>
> .
> NAML<http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815p4682829.html
Sent from the Seaside General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130421/b17a3f14/attachment.htm


More information about the seaside mailing list