<div dir="ltr">Sorry i am reading too fast.<br>script: is an exception because javascript is only evaluated on the client.<br>Obviously you cant pass a block to javascript.<br><br>Just look at WAScriptTag!<br><br>&gt; self document nextPutAll: aString displayString <br>
<br>It only takes the displayString of the argument.<br><br>br<br>Gerhard<br><br><br><div class="gmail_quote">On Wed, Jul 23, 2008 at 2:00 PM, SainTiss &lt;<a href="mailto:saintiss@gmx.net">saintiss@gmx.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In that case, how come:<br>
<br>
html script with: [html text: &#39;testing&#39;]<br>
<br>
renders:<br>
<br>
&lt;script type=&quot;text/javascript&quot;&gt;/*&lt;![CDATA[*/[] in<br>
STAAMenuComponent&gt;&gt;renderContentOn: {[html text: &#39;testing&#39;]}/*]]&gt;*/&lt;/script&gt;<br>
<br>
while html script with: &#39;testing&#39;<br>
<br>
renders:<br>
<br>
&lt;script type=&quot;text/javascript&quot;&gt;/*&lt;![CDATA[*/testing/*]]&gt;*/&lt;/script&gt;<br>
<br>
?<br>
This is what I mean by the script tag expecting a string. Sure, you can pass<br>
it a block, but the block won&#39;t be evaluated as I would like it to be.<br>
<br>
Or did I misunderstand you?<br>
<br>
Thanks,<br>
<br>
Hans<br>
<div><div></div><div class="Wj3C7c"><br>
On Wednesday 23 July 2008 13:53:00 Gerhard Obermann wrote:<br>
&gt; That is not correct.<br>
&gt;<br>
&gt; Look at the implemenation in WATagBrush.<br>
&gt; with: &#39;asdasd&#39; and with: [] and: with: anyKindOfObject<br>
&gt; is basically available for all tags!<br>
&gt;<br>
&gt; The argument of #with: is rendered using<br>
&gt; double dispatching, therefore any object can be<br>
&gt; passed as argument.<br>
&gt;<br>
&gt; br<br>
&gt; Gerhard<br>
<br>
<br>
<br>
</div></div><div><div></div><div class="Wj3C7c">--<br>
A liberal is a person whose interests aren&#39;t at stake at the moment<br>
 &nbsp;-- Willis Player<br>
<br>
Hans Schippers<br>
Research Assistant of the Research Foundation - Flanders (FWO - Vlaanderen)<br>
<a href="http://www.win.ua.ac.be/%7Ehschipp/" target="_blank">http://www.win.ua.ac.be/~hschipp/</a><br>
Formal Techniques in Software Engineering (FoTS)<br>
University of Antwerp<br>
Middelheimlaan 1<br>
2020 Antwerpen - Belgium<br>
Phone: +32 3 265 37 88<br>
Fax: +32 3 265 37 77<br>
_______________________________________________<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>
</div></div></blockquote></div><br></div>