<div>Hello Stevie,</div>
<div>With regular Seaside components you want to use #serializeThis (I think Scriptaculous has that selector?) in an onChange or similar event for those components that you want to submit individually. This causes the callback attached to the component to execute.</div>

<div> </div>
<div>The trouble is that Magritte Seaside components don&#39;t know anything about javascript. They don&#39;t render any javascript, so you have to create your own components that will render the javascript AND render it based only on the description(s) of your model. Not trivial.</div>

<div> </div>
<div>I have had good (dare I say exceptional) results doing so with jQuery, but it is not that simple a task (and it is not all that pretty - yet). If you are daring you can look at <a href="http://source.lukas-renggli.ch/@67UU8oH8i49c3_l6/0P-cK33_?54">Magritte-JQueryWidgetBox</a></div>

<div> </div>
<div>Hope this helps</div>
<div>John<br></div>
<div class="gmail_quote">On Wed, May 18, 2011 at 8:53 AM, Stevie Bornschein <span dir="ltr">&lt;<a href="mailto:steviebornschein@googlemail.com">steviebornschein@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Sebastian,<br><br>thanks for replying so fast. Sadly I’m not so versed in SeaSide yet—could you explain further? I already tried to use the triggerForm message, but I don’t exactly know what to do in order to submit the form eventually.<br>
<br>Many thanks,<br><font color="#888888">Stevie</font> 
<div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">2011/5/18 Sebastian Sastre <span dir="ltr">&lt;<a href="mailto:sebastian@flowingconcept.com" target="_blank">sebastian@flowingconcept.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div style="WORD-WRAP: break-word">
<div><br></div>
<div>onReactingToSomethingOn: html</div>
<div><span style="WHITE-SPACE: pre-wrap"></span></div>
<div><span style="WHITE-SPACE: pre-wrap"><span style="WHITE-SPACE: pre-wrap"></span>|</span> anUpdater |</div>
<div><br></div>
<div><span style="WHITE-SPACE: pre-wrap"></span>anUpdater := self makeUpdaterOn: html.</div>
<div><br></div>
<div><span style="WHITE-SPACE: pre-wrap"></span>anUpdater triggerForm: &#39;yourFormId&#39;</div>
<div><br></div>
<div><br></div>
<div>gives you ideas?</div>
<div><br></div>
<div>
<div>
<div><a href="http://twitter.com/#%21/sebastianconcpt" target="_blank">sebastian</a> </div></div>
<div><br></div>
<div>o/</div></div>
<div><br></div>
<div><br></div><br>
<div>
<div>
<div></div>
<div>
<div>On May 18, 2011, at 9:42 AM, Stevie Bornschein wrote:</div><br></div></div>
<blockquote type="cite">
<div>
<div></div>
<div>Hi there,<br><br>I am building a Magritte form and want to submit it using Ajax. The reason is that, depending on the value of a select list, some of the other inputs of the form have to be hidden or visible. In case users change the value of the select list I want to save their changes and show the reduced or extended form on the fly.<br>
<br>At the moment I reload the whole form using a Scriptaculous updater (that works fine), but I have difficulties to save the updated model values. Obviously, the form&#39;s contents will be reset if I don’t save them.<br>
<br>Does anyone have an idea how to save the form manually, without pressing the &#39;submit&#39; button and without reloading the whole page?<br><br>Cheers,<br>Stevie<br></div></div>_______________________________________________<br>
seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
</blockquote></div><br></div><br>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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></blockquote></div><br></div></div><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></blockquote></div><br><br clear="all"><br>-- <br><a href="http://john-mckeon.us/" target="_blank">http://john-mckeon.us</a><br>