This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Print the main page after confirmation page is closed

 
Simpson Kumar
Ranch Hand
Posts: 261
  • 0
  • 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: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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