<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 19, 2016 at 3:11 PM, J.F. Rick <span dir="ltr">&lt;<a href="mailto:self@je77.com" target="_blank">self@je77.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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:<div>    s &lt;&lt; (s jQuery: #event) replaceWith: self.<br></div><div>inside a &quot;html jQuery ajax script: [ :s | ]&quot; block.</div><div><br></div><div>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:</div><div><span><div>    s &lt;&lt; (s jQuery: #event) replaceWith: [ :html | </div><div>        html html: &#39;&lt;b&gt;&#39;.</div><div>        html text: (self isSuccess</div><div>            ifTrue: [ &#39;Success&#39; ]</div><div>            ifFalse: [ &#39;Failed&#39; ]).</div><div>        html html: &#39;&lt;/b&gt;&#39; ].<br></div><div><br></div></span></div></div></blockquote><div><br></div><div>Jeff, I think that should work, exactly as you typed it.</div><div>It doesn&#39;t? </div></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>