I'll pick up the second for you. Your problem seems to be not on the
idea, but on the choice for implementation. While you could try
and force the document down the line, I'd suggest a simple
workaround of having your form action generate a temporary file for
the gif, then return a html page with an <img src> tag to the file.
Your resulting text page will contain the image you want, and to keep
things clean, you can have the "ok" button at the bottom of the returned
page call a script to clean up the gensym-ed (temp named) file.
Granted, there are more elegant ways to work this, however, I did some
brief playing with generating graphs on the fly and found I almost
always wanted text/anchors at the bottom anyway, so why fight to get
around what you will probably use anyway.
Hope that helps.
-Jason
=========================================================
Jason Bluming
Enterprise Integration Technologies
[email protected]
(415) 617 - 8018 (office) | 459 Hamilton Avenue
617 - 8019 (fax) | Palo Alto, CA 94301
=========================================================