<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>Unless you render everything in that div (the dialog) within the #with: or render another component in there, sometimes it's easier to separate out everything into their own components.<br><br>RS<br><br><hr>From&#58; tibabenfortlapalanca@gmail.com<br>Date&#58; Fri, 24 Sep 2010 13&#58;15&#58;04 +0200<br>To&#58; seaside@lists.squeakfoundation.org<br>Subject&#58; [Seaside] Ajax + callbacks<br><br>Hi list,<div><br></div><div>I've got a problem when rendering a component on an AJAX dialog,&nbsp;I have a table where there is an anchor in each row containing the following (among other stuff)&#58;</div><div><br></div><div><div>

<span class=ecxApple-tab-span style="white-space&#58;pre"><i>        </i></span><i>| id |</i></div><div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>        </i></span><i>(html div)</i></div><div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                </i></span><i>id&#58; (id &#58;= html nextId);</i></div>

<div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                </i></span><i>script&#58;</i></div><div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                                </i></span><i>((html jQuery new dialog)</i></div><div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                                                </i></span><i>html&#58; (AComponent new withParameter&#58; anObject);</i></div>

<div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                                                </i></span><i>title&#58; anObject objectName)</i><i>.</i></div><div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>        </i></span><i>html</i></div><div>

<span class=ecxApple-tab-span style="white-space&#58;pre"><i>                </i></span><i>tableData&#58; [&nbsp;</i></div><div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                        </i></span><i>(html anchor)</i></div><div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                                </i></span><i>onClick&#58; (html jQuery id&#58; id) dialog open;</i></div>

<div><span class=ecxApple-tab-span style="white-space&#58;pre"><i>                                </i></span><i>with&#58; 'Open my component for anObject in a dialog box' ]</i></div></div><div><br></div><div>Now, this works perfectly, but AComponent should also be able to call other simple components and handle their callbacks. Not only this, but it contains a form and it should be able to handle its own callbacks without disappearing. Adding these small subcomponents to AComponent's children doesn't help, could someone please point out the way to proceed or give me some example/documentation?</div>

<div><br></div><div>Thanks a lot!</div><div><br></div><div>Bernat Romagosa.</div>
<br>_______________________________________________
seaside mailing list
seaside@lists.squeakfoundation.org
http&#58;//lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside                                               </body>
</html>