How to exit a cgi file after a download
Ferrous Cranus
nikos at superhost.gr
Wed Sep 4 12:49:51 EDT 2013
Python help.
I use the following code in a cgi file
to give the client a download link to
download a file.
---
print "%s" % ('<a href = "Setup.zip"> Down
Load </a>')
----
A click on "Down Load" opens a pop up browser
window which allows the user to choose where
to download the "Setup.zip" file, then after
the download, the pop up window closes.
My problem is that I want the cgi form, which
contains the link, to also close after the
download. The only way I can figure out to
close the cgi window is to give the user a
button to close it.
Without closing it, the client can download
again and forever if they choose to because
the cgi window is open and the link is still
active.
I am trying to find a way to close the cgi
file or call another file after the download
without adding a close button and asking the
client to close the window.
jd
More information about the Python-list
mailing list