aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 260
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: 60048
    
  65

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Print the main page after confirmation page is closed
 
Similar Threads
hello! :) it's me again...
Close main window from popup window
can't get my child window to close and reload the parent.
2 questions about confirm() and onsubmit()
Printer friendly page with javascript