Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Change style sheet by javascript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="michelangelo" data-source="post: 646387" data-attributes="member: 54225"><p>On the website, we want to have "screen view" for viewing and "print view" for printing. </p><p></p><p>In the past and when floated objects are located on the webpage, we prepare a pdf file for that. </p><p></p><p>When no floated objects appear on the page, we want to use instead as "print view" an html view of the same page (same.html file) to reduce work and footprint on the hosting server. In other words, the "print view" is a reliable screen view of what will be printed if we print the "print view" page using the printer</p><p></p><p>We access the print view via a link called 'print view" which opens a reduced size pop-up window with a degradable javascript</p><p></p><p>The way the site is programmed today, two stylesheets exist: a standard one for screen viewing called "styles.css" and a special one for print called styles_print.css"</p><p></p><p>The print view is accessed throug a copy of the original html file "original.html" called original_print.html" and containing a link modified to point to "styles_print.css"</p><p></p><p>This is cumbersome. Could I simplify this with javascript (or else) to use only one html file (the original.html)</p><p></p><p>Example page: see <<a href="http://tinyurl.com/59m7ar" target="_blank">http://tinyurl.com/59m7ar</a>></p><p></p><p>TIA</p></blockquote><p></p>
[QUOTE="michelangelo, post: 646387, member: 54225"] On the website, we want to have "screen view" for viewing and "print view" for printing. In the past and when floated objects are located on the webpage, we prepare a pdf file for that. When no floated objects appear on the page, we want to use instead as "print view" an html view of the same page (same.html file) to reduce work and footprint on the hosting server. In other words, the "print view" is a reliable screen view of what will be printed if we print the "print view" page using the printer We access the print view via a link called 'print view" which opens a reduced size pop-up window with a degradable javascript The way the site is programmed today, two stylesheets exist: a standard one for screen viewing called "styles.css" and a special one for print called styles_print.css" The print view is accessed throug a copy of the original html file "original.html" called original_print.html" and containing a link modified to point to "styles_print.css" This is cumbersome. Could I simplify this with javascript (or else) to use only one html file (the original.html) Example page: see <[URL="http://tinyurl.com/59m7ar"]http://tinyurl.com/59m7ar[/URL]> TIA [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Change style sheet by javascript
Top