durusmail: quixote-users: DOMish view of HTML as it's being rendered
ZODB FileStorage problem
2002-02-27
2002-02-28
2002-02-28
2002-03-01
DOMish view of HTML as it's being rendered
2002-02-28
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
DOMish view of HTML as it's being rendered
Jeff Rush
2002-03-01
David,

In the Request object of Zope, which I believe Quixote built on, you _can_ add
or set headers while deep in the body of a page, via the methods:

    Response.addHeader(name, value):
    Response.appendHeader(name, value, delimiter=,):

It's not a DOM solution, nor one that supports general 'reaching back',
but it does help with the common case of header manipulation.

-Jeff

On Thursday 28 February 2002 22:52, David Ascher wrote:
> Here's another question that's straight on for Quixote.
>
> I've found that at times I need to do a fair bit of reorganizing of my
> code in order to, e.g., get the right things in the , while I'm
> actually deep in the body of the .  Given the very "sequential"
> nature of "HTML accretion" in Quixote, that can be a little tricky.
>
> Has anyone else longed for a DOM-like approach at times, where one
> could, as an _alternative_ to just returning strings, do something like:
>
>    response.head.append('bit of html')
>
> or
>
>
> response.getElement('table1').getChild('header_row').insertChild('Perce
>ntages')
>
> ?
>
> I realize that there are lots of technical challenges involved in doing
> DOMish things on an as-yet ill-formed document.  At this point I'm just
> trying to figure out if my wishes seem bizarre to the rest of you.
>
> --david
>
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://www.mems-exchange.org/mailman/listinfo/quixote-users


reply