Dear list,<br><br>I&#39;m stuck at trying to do a cascade of messages on a jquery instance:<br>I want to do something like this:<br><pre class="prettyprint"><code><span class="pln">$</span><span class="pun">(</span><span class="str">&#39;&lt;li id=&quot;newhere&quot;&gt;&lt;input type=&quot;checkbox&quot; /&gt;&lt;span class=&quot;listTitle&quot;&gt;Im new here&lt;/span&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/li&gt;&#39;</span><span class="pun">)</span><span class="pln"><br>
  </span><span class="pun">.</span><span class="pln">hide</span><span class="pun">().</span><span class="pln">prependTo</span><span class="pun">(</span><span class="str">&#39;#container&#39;</span><span class="pun">).</span><span class="pln">slideDown</span><span class="pun">(</span><span class="str">&quot;slow&quot;</span><span class="pun">);<br>
<br>so some text, hide it, prepend to some container using some effect.<br><br><br>what I&#39;ve already got is:<br><br>(html unorderedList)<br>   id: &#39;tweets&#39;;<br>   script:<br>        ((html jQuery ajax script: [ :s | s &lt;&lt; (s jQuery html:  [ :r | self renderTweetsOn: r ]) prependTo: (s jQuery id: #tweets)];<br>
        interval: 10 seconds));<br>   with: [ self renderTweetsOn: html ]]<br><br>which just prepends without the effect.<br><br>If I update this to: <br></span></code><code><span class="pun">        ((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>it fails with error:<br><br>that JSScript&gt;&gt;prependTo: does not exist.<br>meaning that the hide message send returned a JSScript object instead of a JQueryInstance (which is what I expected to happen).<br><br>Any way to solve this?<br>
<br>Thanks for any pointers.<br><br>Kind Regards,<br><br>Bart<br></span></code><br clear="all"></pre>-- <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>