<div class="gmail_quote">On Wed, Mar 25, 2009 at 12:39 AM, Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></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">> I'm trying to do something like this in seaside 2.9<br>
><br>
> html button<br>
> onClick: (html jQuery ajax<br>
> serialize: (html jQuery this);<br>
> script: [:s | s << (s jQuery id: stratId) append: [html text:<br>
> 'bing'. html break]]);<br>
> callback: [2 inspect];<br>
> with: 'add option'.<br>
><br>
> and as I expect my div with stratId is getting appended but I'm not<br>
> getting an inspect window in my squeak image? What's the right way to<br>
> do this?<br>
<br>
</div>The answer is in the second part of the method comment of #serializeThis:<br>
<br>
"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."<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't actually get submitted? <br></div></div><br>Julian<br>