| Author |
How to open a printable version of a page using css
|
vishwanath nadimpally
Ranch Hand
Joined: Jan 25, 2005
Posts: 116
|
|
I am using javascript to open a printable version of a jsp by hiding the header and footer . But this is posting back to the server everytime it opens the printable page and this is causing some poblems on confirmation pages (like bill payment etc.). Most of the pages in the utility application I am working on call oracle stored procedures and they have a 'reject code' output parameter, which is set to true once an error occurs and the post back is setting it to true. Is there a way using CSS we can open a printable version of a page with out posting back to the server? thanks for any help.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
CSS print media Add a new style sheet with the things hidden. No JavaScript or postbacks needed. Eric
|
 |
vishwanath nadimpally
Ranch Hand
Joined: Jan 25, 2005
Posts: 116
|
|
|
thanks eric
|
 |
 |
|
|
subject: How to open a printable version of a page using css
|
|
|