[thelist] Print friendly pages.
Anthony Baratta
Anthony at Baratta.com
Tue Feb 6 18:32:31 CST 2001
At 01:33 PM 2/6/2001 -0800, you wrote:
>If you just need to make one page printer-friendly, then you could try using
>a common server-side tool like XSSI to put the content into two pages--the
>regular page and a print-friendly version. SSI might even be running on your
>server already, if you're using a hosting company.
I'm with Zachary on this one....But have a twist on the idea.
First, break your site template/design into modules. E.g. Header, footer,
nav, body, et.al. One benefit of this is you can reuse included templates
and design where necessary and update them by editing one file.
Then create a small CGI program that accepts a file name & location. This
script will grab the printer friendly template and stuff the "body" file
into it creating a printer friendly html page for the browser. You can
activate this via a link that activates a javascript function call so you
don't have to hard code the CGI input parameters on each page.
---
Anthony Baratta
President
Keyboard Jockeys
More information about the thelist
mailing list