Forum OpenACS Q&A: AOLServer/TCL Question

Collapse
Posted by Jon Block on
I have developed my first AOLServer application, and theres one thing
I can't figure out and I think this may be the place to post my
question. I've got an .adp page that has a query at the bottom. I
would like to deliver the contents of the top of the page back to the
requesting browser and *then* run the query because the query could
be slow.

I discovered "ns_returnfile" which can send back headers and the
contents of a specfic file, close the socket, and then continue
processing. This is exactly what I want but I want to send back the
headers and the content of the current .adp page that is being
processed up to the point where I specify.

I would really appreciate it if somebody could steer me in the right
direction.

Thank you,
Jon Block

Collapse
Posted by Jonathan Ellis on
I think what you need to use is ad_return_top_of_page.  I don't think you can use this with ADPs, though. :/
Collapse
Posted by Andrew Piskorski on
Jon, you can definitely do that sort of thing with the Templating System by using template::adp_parse, but at least so far the system doesn't make it super easy for you. It's been discussed before, see the returning pages in chunks thread.