This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Print the main page after confirmation page is closed 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 "Print the main page after confirmation page is closed" Watch "Print the main page after confirmation page is closed" New topic
Author

Print the main page after confirmation page is closed

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
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


Thanks,
Kumar
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Print the main page after confirmation page is closed