469,890 Members | 1,642 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

closing a window

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
2 1968
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
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.

Similar topics

2 posts views Thread by Derek | last post: by
5 posts views Thread by Ron L | last post: by
1 post views Thread by Chris Bruce | last post: by
3 posts views Thread by Saradhi | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.