This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Print the main page after confirmation page is closed

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

How to print the current page after I closed the popup page with print option.

1) in the current page I have print button, when I click on the this, I open a popup window with print instructions and closes that window. now I need to print the current page directly after I close popup.

I did all the things, I can open the popup and and I was calling one javascript function from popup (the function is written in main page), after I close the window, the main page's function is calling, but I was unable to print and was getting the following error popup window.
An Error Occured During the operation


and I used the function code in popup window is

I used the printPage() function in main page as following.


why the printwindow = window.print(); is not working?

please advice me
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic