Thomas Magma wrote:
Without any fancy solutions, I just have javascript post it to a form
field
and email it to them from the form. That way they get a hard copy and can
do
what they want with it.
Larry L
That's a neet idea. I will consider this.
Thanks
Thomas
I know another method which does what you want. Use javascript to post
a form to a script on your server (php/perl.. whatever) and the php
file echoes the text data back to the browser.
Most importantly you must set the "Content-Disposition" http header to
force the Save As dialog box to appear instead of the text being
displayed in the browser.
In php you should set these header's
header('Content-Type: text/plain');
header('Content-Disposition: attachment; filename="somefile.txt"');
//somefile.txt will the default filename in Save As dialog box - can be
changed by user when it appears
Sometimes this will be more appropriate than the email method,
sometimes the email method will be more useful, depends on what your
doing
hu