File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Close Popupwindow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Close Popupwindow" Watch "Close Popupwindow" New topic

Close Popupwindow

chennai Kumar
Ranch Hand

Joined: Jun 04, 2005
Posts: 72
Hai All,

Could you please give me best solution for the below requirement.

When we clicking on hyperlink in JSP page following actions need to work.

a) Open a popup window and display as "Downloading..."
b) Read the data from the database and download the data in excel format
c) After downloading the excel file, existing popup window need to close automatically.

Here I have a doubt that how to trace the excel file is downloaded or not where can i handle for closing the popopwindow

Goutam Chowdhury
Ranch Hand

Joined: Jan 20, 2009
Posts: 44
1> Open one popup using
2> In popup JSP ,call a JS function fron <body Onload="DwonLoad()>
3> Inside the function you do a Ajax call and trace all the state of your call......initially display one flash image where thiss will show "downlading....."
4>After completing you close your popup using js inbuild function


Thanks And Regards
Goutam Chowdhury (Scjp1.4 86%,SCWCD5 94%)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Nothing to do with JSP -- this will require JavaScript. Moved to the JavaScript forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Close Popupwindow
It's not a secret anymore!