Hey all,
Here's the deal... I've got a page with some clickable icons which are used to 'View' a test and 'Print' a test. The 'View' icon opens a new window and the test is displayed.
What I want to do is allow the 'View' page to be printed, when the 'Print' icon is clicked, without displaying the 'View' page to the user.
My first thought was to just move it off the screen:
I also thought about setting the width/height to zero (which apparently can't be done).
I just wanna know if there's a more elegant way of doing this.
Thx.
Here's the deal... I've got a page with some clickable icons which are used to 'View' a test and 'Print' a test. The 'View' icon opens a new window and the test is displayed.
What I want to do is allow the 'View' page to be printed, when the 'Print' icon is clicked, without displaying the 'View' page to the user.
My first thought was to just move it off the screen:
Code:
self.moveTo(-1000, 0);
this.print();
setTimeout("this.close()", 1000); //Allow time for print dialog to display
I also thought about setting the width/height to zero (which apparently can't be done).
I just wanna know if there's a more elegant way of doing this.
Thx.