<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
It looks like there's a few things you may or may not be doing with your code that I see. I don't necessarily have a solution for you, but maybe this will get you on the right track:<div><div><br></div><div>First of all, for your sanity, you may want to separate out your callback functions as separate methods. It makes the code a lot easier to follow.</div><div><br></div><div>Also, callbacks are simply functions that can be passed around just like a variable. They're known as anonymous functions also, if that helps. They are not overused in Seaside at all. In fact, many languages use them as a core aspect of their architecture (ie. NodeJS). Callbacks should be your best friend :) They are intrinsic to any asynchronous pattern (ie. Ajax). Here's a simple example:</div><div><br></div><div>I ask the server for something (ajax GET request).</div><div><div>Now, I don't know when the server is going to get back to me with the answer, or if at all, but what I can provide is instructions for what to do with a successful or failed response.</div><div>That's what the callback is doing for me.</div><div><br></div><div>I don't know much about Scriptaculous, but I think you probably want the ajax request object instead of updater. There should be a way to configure updater so that you serialize the form and send that data serverside.</div><div><br></div><div>Also, #<span style="font-size: 10pt; ">renderTheListWith:on: doesn't need to do any rendering stuff. Your callback in the updater can deal with that.</span></div><div><br></div><div>RS&nbsp;</div><div><br><div><div id="SkyDrivePlaceholder"></div>&gt; To: seaside@lists.squeakfoundation.org<br>&gt; From: intrader@aol.com<br>&gt; Date: Mon, 27 Aug 2012 22:06:24 +0000<br>&gt; Subject: [Seaside] Re: Help with JQuery example<br>&gt; <br>&gt; intrader &lt;intrader &lt;at&gt; aol.com&gt; writes:<br>&gt; <br>&gt; &gt; <br>&gt; Thanks both for your answers. The trouble I have is with callbacks <br>&gt; in ajax calls (using scriptaculous) I include a pastebin of a small <br>&gt; project superimposed on the code for MyFirstComponent. The paste is at <br>&gt; http://paste.ubuntu.com/1170727/. I am not able to get the callback <br>&gt; in the #onChange handler for the input text box. I am not clear what<br>&gt;  the #triggerForm method is for - it may have the effect of not <br>&gt; allowing the callback in the onChange to execute.<br>&gt; The javascript meaning of callbacks is way overloaded in the use <br>&gt; for seaside.<br>&gt; <br>&gt; Thanks for your help <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; seaside mailing list<br>&gt; seaside@lists.squeakfoundation.org<br>&gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div></div></div></div>                                               </div></body>
</html>