closing a window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Blake Macon

    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?
  • BJay

    #2
    Re: closing a window

    macon@itd.nrl.n avy.mil (Blake Macon) wrote in message news:<8e7e15e5. 0311141304.4176 95c1@posting.go ogle.com>...[color=blue]
    > 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?[/color]

    if you opened the window using something like
    a = window.open("hr ef")
    you could try
    a.close()

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: closing a window

      Blake Macon wrote:
      [color=blue]
      > 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.[/color]

      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.
      [color=blue]
      > I named the window and put some Javascript in the download servlet to
      > close it, but it won;t close.[/color]

      Source code?



      PointedEars

      Comment

      Working...