<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'>No problem. I'll just add that there's plenty of ways you can chain and link events, but you wanna make sure you serialize first so the data is there. I just happen to like the (latter) method. It works for me.<br><br>RS<br><br>> Date&#58; Thu, 6 Oct 2011 21&#58;54&#58;44 -0400<br>> Subject&#58; Re&#58; &#91;Seaside&#93; Ajax Posting with JQuery&#58; An example&#63;<br>> From&#58; ljw1001&#64;gmail.com<br>> To&#58; seaside&#64;lists.squeakfoundation.org<br>> <br>> That was just the help I needed. Thanks&#33;<br>> <br>> On Wed, Oct 5, 2011 at 10&#58;51 PM, Robert Sirois &#60;watchlala&#64;hotmail.com&#62; wrote&#58;<br>> &#62; The child component should have an ajax callback, then. It doesn&#39;t need to<br>> &#62; be in a form necessarily.<br>> &#62; It could look something like this&#58;<br>> &#62; html textInput<br>> &#62; &#160; &#160; callback&#58; &#91;&#58;v &#124; self doSomethingWithValue&#58; v &#93;&#59;<br>> &#62; &#160; &#160; onChange&#58;/onBlur&#58;/onEnter&#58; &#40;html jQuery ajax serializeThis&#41;.<br>> &#62; That would serialize it, but I imagine you want it to do something, so you<br>> &#62; could further modify it this way&#58;<br>> &#62; html textInput<br>> &#62; &#160; &#160; callback&#58; &#91; ... &#93;&#59;<br>> &#62; &#160; &#160; onEnter&#58; &#40;html jQuery ajax serializeThis onSuccess&#58; &#40;html jQuery ajax<br>> &#62; script&#58; &#91;&#58;s &#124; s add&#58; &#40;self doSomethingOn&#58; s&#41; &#93;.<br>> &#62; RS<br>> &#62;&#62; Date&#58; Wed, 5 Oct 2011 20&#58;43&#58;40 -0400<br>> &#62;&#62; From&#58; ljw1001&#64;gmail.com<br>> &#62;&#62; To&#58; seaside&#64;lists.squeakfoundation.org<br>> &#62;&#62; Subject&#58; &#91;Seaside&#93; Ajax Posting with JQuery&#58; An example&#63;<br>> &#62;&#62;<br>> &#62;&#62; Hi,<br>> &#62;&#62;<br>> &#62;&#62; I need to make an Ajax post using JQuery, with Seaside for my server.<br>> &#62;&#62; I&#39;ve found a number of Seaside JQuery examples &#40;no posts though&#41; and<br>> &#62;&#62; lots of JQuery post examples &#40;no seaside&#41;. In the JQuery examples you<br>> &#62;&#62; specify the URL you&#39;re posting to, but that would be wrong in Seaside.<br>> &#62;&#62;<br>> &#62;&#62; Here&#39;s the use case. I have a large table of data. Each cell contains<br>> &#62;&#62; an anchor and clicking on the anchor converts the cell to a TextInput<br>> &#62;&#62; field. Now I need to submit that field&#39;s value, in an Ajaxy way, so I<br>> &#62;&#62; only refresh the single cell of the table.<br>> &#62;&#62;<br>> &#62;&#62; A simplified version of the current code looks like this&#58;<br>> &#62;&#62;<br>> &#62;&#62; renderContentOn&#58; html<br>> &#62;&#62; &#124; child &#124;<br>> &#62;&#62; child &#58;&#61; myTextEditor<br>> &#62;&#62; valueBlock&#58; &#91; object value &#93;<br>> &#62;&#62; callback&#58; &#91; &#58;value &#124; object setValue&#58; value &#93;<br>> &#62;&#62;<br>> &#62;&#62; html anchor<br>> &#62;&#62; onClick&#58; &#40;&#40;html jQuery this&#41; load html&#58; &#91; &#58;r &#124; r render&#58; child &#93;&#41;&#59;<br>> &#62;&#62; with&#58; &#40; object value&#41;.<br>> &#62;&#62;<br>> &#62;&#62; I&#39;m assuming the solution involves modifying the callback in my<br>> &#62;&#62; &#39;child&#39; to post using JQuery. if anyone could explain in a bit more<br>> &#62;&#62; detail what the callback and the server code should look like it would<br>> &#62;&#62; be a big help.<br>> &#62;&#62;<br>> &#62;&#62; PS&#58; It would also make a good addition to Dynamic Web Development with<br>> &#62;&#62; Seaside&#39;s draft JQuery chapter so you&#39;d probably be helping a lot of<br>> &#62;&#62; people &#59;&#41;<br>> &#62;&#62;<br>> &#62;&#62; Thanks much.<br>> &#62;&#62;<br>> &#62;&#62; Larry<br>> &#62;&#62; _______________________________________________<br>> &#62;&#62; seaside mailing list<br>> &#62;&#62; seaside&#64;lists.squeakfoundation.org<br>> &#62;&#62; http&#58;//lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> &#62;<br>> &#62; _______________________________________________<br>> &#62; seaside mailing list<br>> &#62; seaside&#64;lists.squeakfoundation.org<br>> &#62; http&#58;//lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> &#62;<br>> &#62;<br>> _______________________________________________<br>> seaside mailing list<br>> seaside&#64;lists.squeakfoundation.org<br>> http&#58;//lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                               </div></body>
</html>