<div class="gmail_quote">On Wed, Mar 25, 2009 at 12:39 AM, Lukas Renggli <span dir="ltr">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">&gt; I&#39;m trying to do something like this in seaside 2.9<br>
&gt;<br>
&gt; html button<br>
&gt;  onClick: (html jQuery ajax<br>
&gt;  serialize: (html jQuery this);<br>
&gt;  script: [:s | s &lt;&lt; (s jQuery id: stratId) append: [html text:<br>
&gt; &#39;bing&#39;. html break]]);<br>
&gt;  callback: [2 inspect];<br>
&gt; with: &#39;add option&#39;.<br>
&gt;<br>
&gt; and as I expect my div with stratId is getting appended but I&#39;m not<br>
&gt; getting an inspect window in my squeak image? What&#39;s the right way to<br>
&gt; do this?<br>
<br>
</div>The answer is in the second part of the method comment of #serializeThis:<br>
<br>
&quot;Serialize the receiving element. Note that this might not work for<br>
all form elements: (1) for check-boxes and multi-select lists Seaside<br>
internally depends on an additional hidden form element that is<br>
generated automatically, instead use #serializeThisWithHidden (2)<br>
submit-button callbacks are ignored, instead use a normal callback to<br>
trigger specific code evaluation.&quot;<br>
<br>
Instead put your callback code into the jQuery callback itself (the<br>
#script: block).<br>
<br></blockquote><div><br>This is presumably because the form doesn&#39;t actually get submitted? <br></div></div><br>Julian<br>