<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Johan,<br>
<br>
Adding a loadScript during an ajax callback is a really cool
trick. I've got this working - in principle ;-)<br>
<br>
There is, however, a problem: jQuery's load doesn't support
timeouts (nor any other paramters) . So I need to rewrite load as
an ajax call which supports the timout parameter. Currently
struggling a bit, but it's a good learning experience ;-)<br>
<br>
Again, thanks a lot, you've added a few important building blocks
to the solution!<br>
<br>
Joachim <br>
<br>
<br>
Am 20.11.15 um 10:06 schrieb Johan Brichau:<br>
</div>
<blockquote
cite="mid:A842D58A-065B-40BE-B517-66D09C5485D9@inceptive.be"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 20 Nov 2015, at 09:57, Johan Brichau <<a
moz-do-not-send="true" href="mailto:johan@inceptive.be"
class=""><a class="moz-txt-link-abbreviated" href="mailto:johan@inceptive.be">johan@inceptive.be</a></a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<div class="">This perfectly fits your decoration
implementation. Something along these lines (disclaimer:
untested code written in email client :) :</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>The code I sent before will poll a bit too quickly :) I
forgot to add a wait on the client:</div>
<br class="">
<div class="">
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>replaced<br
class="">
<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span>ifTrue:
[div with: [self renderNextOn: html]]<br class="">
<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span>ifFalse:
[<br class="">
<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span>html
document addLoadScript: (self loadScriptOn: html).<br
class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span>div
with: [<br class="">
<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span>html
image src: someSpinnerImage<br class="">
<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span>html
space; text: self message]]</div>
<div class=""><br class="">
</div>
<span class="Apple-tab-span" style="white-space: pre;">        </span>loadScriptOn:
html</div>
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class=""><br class="">
</div>
<div style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<div class=""><span class="Apple-tab-span" style="white-space: pre;">                </span>(html
jQuery: self idSelector) load html: [:r |</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;">                                        </span>self
isDataReady</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;">                                                </span>ifTrue:[ replaced
:= true.<br class="">
<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">                        </span>
self renderNextOn: html]</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;">                                                </span>ifFalse:
[ r addLoadScript: ((self loadScriptOn: r) timeout: 1000)
]).</div>
</div>
</div>
</div>
<div class=""><br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
</body>
</html>