Meaningless Drivel is fun!*
The moose likes JSP and the fly likes How to close pop up window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to close pop up window" Watch "How to close pop up window" New topic
Author

How to close pop up window

Mahesh Shiwani
Greenhorn

Joined: Oct 04, 2004
Posts: 10
HI All,
I have one JSP which shows some result on a search criteria and shows that in a tabular manner. on that jsp i have a button for "Export to Excel".

what i am doing is on click of that button i am passing the data (which is in session) to another jsp with contect-type as "application/vnd.ms-excel" and mean while one more jsp (popup) which is showing "exporting......".. now problem is when my export to excel is completed how can i close that pop up window...?

as my page has content type "application/vnd.ms-excel".. i can not say body onLoaad=something to close window
b'coz it's no more html page....

suggest solutions......
Thanks in advance.. :-))
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to close pop up window
 
Similar Threads
Export to Excel Dialog Box Always Pops Up
Upload Data in Excel file
How to avoid the closing of the pop up window?
Problem with pop-up window
excel file embedded in html page not working