Hi Max,<br><br>thank you. There is >>beSubmitOnChange.<br>But I dont want the whole page to be submitted.<br><br>But you gave me the hint! <br><br>My error was, that I added onChange AFTER the with: block...and that does not work.<br>
<br>This works:<br> theInput1<br> id: mid;<br> selected: self currentDay expensesCountryDay;<br> callback: [ :value | self countryDay: value inspect ];<br> onChange: (html prototype evaluator <br>
triggerForm: self countryDaySelectionFormID;<br> return: false);<br> with: [ .....] ]. <br><br>This doesNOT work<br> theInput<br> id: mid;<br> selected: self currentDay expensesCountryDay;<br>
callback: [ :value | self countryDay: value inspect ];<br> with: [ ..... ];<br> onChange:<br> (html prototype evaluator<br> triggerForm: self countryDaySelectionFormID;<br>
return: false). <br><br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 12:40 PM, Max Leske [via Smalltalk] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4682817&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
        I think you need to add #beOnChange or something similar. That will add the script for the callback.
<br><br></div><div><div class="h5">On 21.04.2013, at 12:24, Sabine Knöfel <<a href="http://user/SendEmail.jtp?type=node&node=4682816&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
<br></div></div><div><div><div class="h5"><div class='shrinkable-quote'><br>> I want to use an optionGroup and copied the code from
<br>> WAInputElementContainer>>renderNestedSelectionOn:.
<br>> The callback does not fire. See below.
<br>> Is this a bug?
<br>> How can I force the callback to fire?
<br>>
<br>> Sabine
<br>>
<br>> |selectTag |
<br>> selectTag := html select.
<br>> selectTag
<br>>         callback: [ :value | value inspect ];
<br>>         selected: 'Lisp';
<br>>         with: [#(#('Functional' #('Haskell ' 'Lisp' 'ML')) #('Dataflow' #('G' 'Max'
<br>> 'Prograph')))
<br>>         do: [ :list |
<br>>                 html optionGroup
<br>>                         label: list first;
<br>>                         with: [
<br>>                                 list second        
<br>>                                         do: [ :each |
<br>>                                                 html option
<br>>                                                         value: each with: selectTag;
<br>>                                                         with: each ] ] ] ].
<br>>
<br>>
<br>>
<br>> --
<br>> View this message in context: <a href="http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815.html</a></div>
> Sent from the Seaside General mailing list archive at Nabble.com.
<br>> _______________________________________________
<br>> seaside mailing list
<br></div></div>> <a href="http://user/SendEmail.jtp?type=node&node=4682816&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div><br>_______________________________________________
<br>seaside mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4682816&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815p4682816.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815p4682816.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from optionGroup -> callback does not fire, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="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" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815p4682817.html">Re: optionGroup -> callback does not fire</a><br/>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html">Seaside General mailing list archive</a> at Nabble.com.<br/>