Hi Johan,<br><br>yes. I was just anwering that I added the onChange: at the wrong place.<br><br>Thank you.<br>Sabine<br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 1:12 PM, Johan Brichau <span dir="ltr"><<a href="mailto:johan@inceptive.be" target="_blank">johan@inceptive.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sabine,<br>
<br>
You mean you want the callback to fire when the selection has changed?<br>
You need to intercept the change event and trigger the callback serialization:<br>
<br>
html select<br>
onChange: (html jQuery ajax serializeThis);<br>
callback: ...<br>
<br>
cheers,<br>
Johan<br>
<div class="HOEnZb"><div class="h5"><br>
On 21 Apr 2013, at 12:24, Sabine Knöfel <<a href="mailto:sabine.knoefel@gmail.com">sabine.knoefel@gmail.com</a>> wrote:<br>
<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" target="_blank">http://forum.world.st/optionGroup-callback-does-not-fire-tp4682815.html</a><br>
> Sent from the Seaside General mailing list archive at Nabble.com.<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>
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>