[Seaside] updateRoot question

Julian Fitzell jfitzell at gmail.com
Thu Apr 22 21:23:52 UTC 2010


#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.

Julian

On Thu, Apr 22, 2010 at 9:07 PM, Sean Allen <sean at monkeysnatchbanana.com>wrote:

> I can do this with WAHtmlDocument>>addLoadScript: for javascript yes?
> But there is no equiv for css etc?
>
>
> On Fri, Apr 16, 2010 at 8:10 PM, Julian Fitzell <jfitzell at gmail.com>
> wrote:
> > If you're streaming the response, definitely not. If you're not, well
> maybe
> > technically, though I think even in that case the data has probably been
> > written to the response's data stream. You could certainly reset the
> > response but then you'd lose everything...
> >
> > You could subclass the render loop code and... the render context class
> > maybe? Then you could hold onto the root in the context and not write it
> out
> > until you were done rendering content. Or something... you're getting in
> > deep at that point. :)
> >
> > Julian
> >
> > On Fri, Apr 16, 2010 at 10:28 PM, Sean Allen <
> sean at monkeysnatchbanana.com>
> > wrote:
> >>
> >> is it possible for code that is executed during renderContentOn: to
> >> add additional header info like updateRoot: does.
> >> so basically, delay til renderContentOn decisions about what to add to
> >> root and what not.
> >>
> >> in psuedo something like:
> >>
> >> renderContentOn: aCanvas
> >>
> >>    aCanvas html: 'some html'.
> >>    self renderMySpecialMethod.
> >>    aCanvas html: 'some html'.
> >>
> >> renderMySpecialMethod: aCanvas
> >>
> >>   *magic to get html root*
> >>   *do something with html root*
> >>   aCanvas html: 'special html that needs something in the root to
> >> operate'.
> >> _______________________________________________
> >> seaside mailing list
> >> seaside at lists.squeakfoundation.org
> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> >
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100422/27fd8c6b/attachment.htm


More information about the seaside mailing list