#addLoadScript: doesn't add anything to the HEAD of the document. The document always has an onLoad specified and #addLoadScript: simply adds to a collection of scripts that are written out at the end of the document.<br>
<br>Julian<br><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 9:07 PM, Sean Allen <span dir="ltr"><<a href="mailto:sean@monkeysnatchbanana.com">sean@monkeysnatchbanana.com</a>></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;">
I can do this with WAHtmlDocument>>addLoadScript: for javascript yes?<br>
But there is no equiv for css etc?<br>
<div><div></div><div class="h5"><br>
<br>
On Fri, Apr 16, 2010 at 8:10 PM, Julian Fitzell <<a href="mailto:jfitzell@gmail.com">jfitzell@gmail.com</a>> wrote:<br>
> If you're streaming the response, definitely not. If you're not, well maybe<br>
> technically, though I think even in that case the data has probably been<br>
> written to the response's data stream. You could certainly reset the<br>
> response but then you'd lose everything...<br>
><br>
> You could subclass the render loop code and... the render context class<br>
> maybe? Then you could hold onto the root in the context and not write it out<br>
> until you were done rendering content. Or something... you're getting in<br>
> deep at that point. :)<br>
><br>
> Julian<br>
><br>
> On Fri, Apr 16, 2010 at 10:28 PM, Sean Allen <<a href="mailto:sean@monkeysnatchbanana.com">sean@monkeysnatchbanana.com</a>><br>
> wrote:<br>
>><br>
>> is it possible for code that is executed during renderContentOn: to<br>
>> add additional header info like updateRoot: does.<br>
>> so basically, delay til renderContentOn decisions about what to add to<br>
>> root and what not.<br>
>><br>
>> in psuedo something like:<br>
>><br>
>> renderContentOn: aCanvas<br>
>><br>
>> aCanvas html: 'some html'.<br>
>> self renderMySpecialMethod.<br>
>> aCanvas html: 'some html'.<br>
>><br>
>> renderMySpecialMethod: aCanvas<br>
>><br>
>> *magic to get html root*<br>
>> *do something with html root*<br>
>> aCanvas html: 'special html that needs something in the root to<br>
>> operate'.<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>
><br>
><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>
><br>
><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>