Dear list,<br><br>I'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">'<li id="newhere"><input type="checkbox" /><span class="listTitle">Im new here</span><ul></ul></li>'</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">'#container'</span><span class="pun">).</span><span class="pln">slideDown</span><span class="pun">(</span><span class="str">"slow"</span><span class="pun">);<br>
<br>so some text, hide it, prepend to some container using some effect.<br><br><br>what I've already got is:<br><br>(html unorderedList)<br> id: 'tweets';<br> script:<br>        ((html jQuery ajax script: [ :s | s << (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 << (s jQuery html: [ :r | self renderTweetsOn: r ]) hide; prependTo: (s jQuery id: #tweets)]; slideDown: 'slow';<br>
<br>it fails with error:<br><br>that JSScript>>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's not enough that we do our best; sometimes we have to do what's required. - Sir Winston Churchill<br>