This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Close Popupwindow

 
chennai Kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with JSP -- this will require JavaScript. Moved to the JavaScript forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic