<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>> 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 <<a href="mailto:saintiss@gmx.net">saintiss@gmx.net</a>> 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: 'testing']<br>
<br>
renders:<br>
<br>
<script type="text/javascript">/*<![CDATA[*/[] in<br>
STAAMenuComponent>>renderContentOn: {[html text: 'testing']}/*]]>*/</script><br>
<br>
while html script with: 'testing'<br>
<br>
renders:<br>
<br>
<script type="text/javascript">/*<![CDATA[*/testing/*]]>*/</script><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'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>
> That is not correct.<br>
><br>
> Look at the implemenation in WATagBrush.<br>
> with: 'asdasd' and with: [] and: with: anyKindOfObject<br>
> is basically available for all tags!<br>
><br>
> The argument of #with: is rendered using<br>
> double dispatching, therefore any object can be<br>
> passed as argument.<br>
><br>
> br<br>
> Gerhard<br>
<br>
<br>
<br>
</div></div><div><div></div><div class="Wj3C7c">--<br>
A liberal is a person whose interests aren't at stake at the moment<br>
-- 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>