<div dir="ltr"><div>Hi Annick,</div><div><br></div><div>It is exactly as Karsten suggests, you usually replace a component by another one, depending on your needs you might use the call/answer, show or simply replace the component (the most common use).</div><div><br></div><div><br></div><div> html tableRow<br>                onClick: ((html jQuery id: 'containerId') ajax html: [:h | h render: YourComponent new]);</div><div><br></div><div>this will render YourComponent within a <div> with id 'containerId', that must exist in the DOM before making the call.</div><div><br></div><div>regards</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Esteban A. Maringolo</div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 4, 2021 at 8:51 AM Karsten Kusche <<a href="mailto:karsten@heeg.de">karsten@heeg.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div>
<div style="font-family:Helvetica,Arial;font-size:13px">Typically you use #call: to have the original component replace itself with another component and then this other component decides when to return by calling #answer:.</div>
<div style="font-family:Helvetica,Arial;font-size:13px"><br>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px">If you move this task to the surrounding component, it can replace the sub-component any time, without the need for a #call:. This approach should be possible from Ajax, too: you basically replace the
 component and redraw the cell.</div>
<div style="font-family:Helvetica,Arial;font-size:13px"><br>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px">Karsten </div>
<br>
<div>
<div>— </div>
<div><br>
<span style="white-space:pre-wrap;font-family:-apple-system;font-size:14px">Georg Heeg eK</span></div>
<div>
<div style="font-family:-apple-system;font-size:14px">
<pre style="white-space:pre-wrap">Wallstraße 22
06366 Köthen

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812</pre>
<div><br>
</div>
</div>
</div>
</div>
<br>
<p>Am 4. Februar 2021 um 10:46:41, List (<a href="mailto:list@afceurope.com" target="_blank">list@afceurope.com</a>) schrieb:</p>
<blockquote type="cite"><span>
<div>
<div></div>
<div>Thank you Karsten,
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>Do you have any suggestion then outside putting an anchor in each cell ?</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>Kind regards</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>Annick<br>
<div><br>
<blockquote type="cite">
<div>Le 4 févr. 2021 à 10:45, Karsten Kusche <<a href="mailto:karsten@heeg.de" target="_blank">karsten@heeg.de</a>> a écrit :</div>
<br>
<div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Hi Annick,</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<br>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
performing a #call: from within a Ajax callback typically doesn’t work in Seaside.</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<br>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Kind Regards</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Karsten</div>
<br style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div>— </div>
<div><br>
<span style="white-space:pre-wrap;font-family:-apple-system;font-size:14px">Georg Heeg eK</span></div>
<div>
<div style="font-family:-apple-system;font-size:14px">
<pre style="white-space:pre-wrap">Wallstraße 22
06366 Köthen

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812</pre>
<div><br>
</div>
</div>
</div>
</div>
<br style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<p style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Am 4. Februar 2021 um 10:42:44, List (<a href="mailto:list@afceurope.com" target="_blank">list@afceurope.com</a>) schrieb:</p>
<blockquote type="cite" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span>
<div>
<div></div>
<div>Hi,<br>
<br>
I would like to call a new component from a table row as in the following<br>
<br>
<tr onclick=« callmycomponent…><br>
<br>
I have tried<br>
<br>
html tableRow<br>
onClick: (html jQuery callback: [self callMyComponent])<br>
<br>
but the callback is called and I stay on the same page<br>
<br>
Best regards<br>
<br>
Annick<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div>
</div>
</span></blockquote>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></blockquote>
</div>

_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div>