<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"><<a href="mailto:self@je77.com" target="_blank">self@je77.com</a>></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'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 << (s jQuery: #event) replaceWith: self.<br></div><div>inside a "html jQuery ajax script: [ :s | ]" 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: '<b>Success</b>'? I'm hoping there's something I can do along the lines of:</div><div><span><div> s << (s jQuery: #event) replaceWith: [ :html | </div><div> html html: '<b>'.</div><div> html text: (self isSuccess</div><div> ifTrue: [ 'Success' ]</div><div> ifFalse: [ 'Failed' ]).</div><div> html html: '</b>' ].<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'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>