<div dir="ltr">Too funny that I guessed something that would actually work. Awesome,<div><br></div><div>Jeff</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 20, 2016 at 5:40 PM Johan Brichau &lt;<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jeff,<br>
<br>
As others have mentioned, this should work as you wrote it.<br>
The argument to replaceWith: is any renderable. This can be component but also a rendering block ( [:html | …. ] )<br>
<br>
Just one thing:<br>
<br>
It’s better style to write:<br>
<br>
(html tag: ‘b’) with: [ …. ] instead of html html: ‘&lt;b&gt;’<br>
<br>
cheers<br>
Johan<br>
<br>
&gt; On 19 Jan 2016, at 19:11, J.F. Rick &lt;<a href="mailto:self@je77.com" target="_blank">self@je77.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I&#39;m using AJAX a decent amount with my Seaside application. One common thing is to replace an IDed element with a component using something like:<br>
&gt;     s &lt;&lt; (s jQuery: #event) replaceWith: self.<br>
&gt; inside a &quot;html jQuery ajax script: [ :s | ]&quot; block.<br>
&gt;<br>
&gt; Is there a way to do this replacement without using a component that implements the renderContentOn: message? For instance, what could I just do to replace the #event component with this HTML: &#39;&lt;b&gt;Success&lt;/b&gt;&#39;? I&#39;m hoping there&#39;s something I can do along the lines of:<br>
&gt;     s &lt;&lt; (s jQuery: #event) replaceWith: [ :html |<br>
&gt;         html html: &#39;&lt;b&gt;&#39;.<br>
&gt;         html text: (self isSuccess<br>
&gt;             ifTrue: [ &#39;Success&#39; ]<br>
&gt;             ifFalse: [ &#39;Failed&#39; ]).<br>
&gt;         html html: &#39;&lt;/b&gt;&#39; ].<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Jeff<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
&gt; <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>
<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" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div>