aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Printable Page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Printable Page" Watch "Printable Page" New topic
Author

Printable Page

Nagesh Rachakonda
Ranch Hand

Joined: Dec 04, 2003
Posts: 34
I have a results html document (using JSPs) at my front. If I click on a link, say 'Printable Page', how can I dynamically format the pop-up page which has part of the content of the parent document with out any links/images, also which should include the parent styles.
I appreciate if anyone can guide me for the good solution. I would like to achive this without making any database query? Can we just do this using HTML and JavaScript?
Thanks in advance.
Nagesh.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
You can do it with the main page by using the CSS properties
http://www.meyerweb.com/eric/articles/webrev/200001.html
Change the format of it with the CSS
Or you can do a reading of the innerHTML and populate the information from
the innerHTML into the window. (This would be a pain)
Eric
 
 
subject: Printable Page
 
Threads others viewed
How to open a printable version of a page using css
Providing site wide printable version for pages.
Capturing the current window's cotents?
Documents
Printing the resultset properly
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com