Thanks very much for this pointer. <br><br>It works if I do:<br> (((s jQuery html:  [ :r | self renderTweetsOn: r ]) hide) prependTo: (s jQuery id: #tweets)) slideDown: &#39;slow&#39;<br><br>if I leave the () out around hide, prependTo: , slideDown: then smalltalk says to me that prependTo: slideDown: message does not exist...<br>
<br>Kind Regards,<br><br>Bart<br><br><div class="gmail_quote">On Wed, Nov 3, 2010 at 8:26 PM, Johan Brichau <span dir="ltr">&lt;<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Bart,<br>
<br>
The #prependTo: message is sent to &#39;s&#39; in the cascade. I think you mean this:<br>
<br>
html jQuery ajax script: [ :s | s &lt;&lt; ((((s jQuery html:  [ :r | self renderTweetsOn: r ]) hide prependTo: (s jQuery id: #tweets)) slideDown: &#39;slow&#39;)];<br>
<br>
also watch out with the following pattern:<br>
<br>
s &lt;&lt; html jQuery keyword: #something<br>
<br>
I have gotten burned by &quot;forgetting&quot; that binary messages are evaluated before keyword messages. The correct form is:<br>
<br>
s &lt;&lt; (html jQuery keyword: #something)<br>
<br>
The strange thing is that it often works without the parentheses, but might go completely wrong when you concatenate the scripts (been there, done that :-).<br>
<br>
cheers<br>
Johan<br>
<div class="im"><br>
<br>
On 03 Nov 2010, at 20:09, Bart Gauquie wrote:<br>
<br>
&gt; If I update this to:<br>
&gt;       ((html jQuery ajax script: [ :s | s &lt;&lt; (s jQuery html:  [ :r | self renderTweetsOn: r ]) hide; prependTo: (s jQuery id: #tweets)]; slideDown: &#39;slow&#39;;<br>
&gt;<br>
&gt;<br>
&gt; it fails with error:<br>
&gt;<br>
&gt; that JSScript&gt;&gt;prependTo: does not exist.<br>
&gt; meaning that the hide message send returned a JSScript object instead of a JQueryInstance (which is what I expected to happen).<br>
&gt;<br>
&gt; Any way to solve this?<br>
<br>
<br>
</div>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">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><br>
</blockquote></div><br><br clear="all"><br>-- <br>imagination is more important than knowledge - Albert Einstein<br>Logic will get you from A to B. Imagination will take you everywhere - Albert Einstein<br>Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning. - Albert Einstein<br>
The true sign of intelligence is not knowledge but imagination. - Albert Einstein<br>However beautiful the strategy, you should occasionally look at the results. - Sir Winston Churchill<br>It&#39;s not enough that we do our best; sometimes we have to do what&#39;s required. - Sir Winston Churchill<br>