aspose file tools*
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
Author

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

Thanks,
Goutam Chowdhury
Ranch Hand

Joined: Jan 20, 2009
Posts: 44
Hi,
1> Open one popup using window.open
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


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

Joined: Jan 10, 2002
Posts: 61434
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Close Popupwindow