By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,685 Members | 1,681 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,685 IT Pros & Developers. It's quick & easy.

closing a window

P: n/a
I have a JSP page which allows you to select some data sets, the click
a button that puts the data together on the server side then downloads
it to the remote end. when the user clicks on the download button I
have a window open that says "Compiling Data...".

I want the window to close when the download is finished. I named the
window and put some Javascript in the download servlet to close it,
but it won;t close. Any idea how i can do this?
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ma***@itd.nrl.navy.mil (Blake Macon) wrote in message news:<8e**************************@posting.google. com>...
I have a JSP page which allows you to select some data sets, the click
a button that puts the data together on the server side then downloads
it to the remote end. when the user clicks on the download button I
have a window open that says "Compiling Data...".

I want the window to close when the download is finished. I named the
window and put some Javascript in the download servlet to close it,
but it won;t close. Any idea how i can do this?


if you opened the window using something like
a = window.open("href")
you could try
a.close()
Jul 20 '05 #2

P: n/a
Blake Macon wrote:
I have a JSP page which allows you to select some data sets, the click a
button that puts the data together on the server side then downloads it
to the remote end. when the user clicks on the download button I have a
window open that says "Compiling Data...".

I want the window to close when the download is finished.
Unless you are talking about an (X)HTML document downloaded to be displayed
with the user agent (UA) afterwards you cannot determine when the download
is finished. And even then you depend on what the UA considers a complete
download of the document, i.e. whether this includes all images to be
downloaded or only the markup to be rendered.
I named the window and put some Javascript in the download servlet to
close it, but it won;t close.


Source code?

PointedEars
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.