Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Where to get "Printer Friendly" CGI??

Where to get "Printer Friendly" CGI??
Thread Tools
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jun 12, 2001, 04:54 AM
 
Help!

Does anyone know where to get an easy to configure "Printer Friendly" CGI that will take an HTML Page and spit it out in a printer friendly way??

I can't find a script anywhere for this, a free would be great!

Thanks!
     
Dedicated MacNNer
Join Date: Mar 2000
Location: Liverpool, Merseyside, UK
Status: Offline
Reply With Quote
Jun 12, 2001, 08:16 AM
 
Originally posted by JeremyS:
<STRONG>Help!

Does anyone know where to get an easy to configure "Printer Friendly" CGI that will take an HTML Page and spit it out in a printer friendly way??

I can't find a script anywhere for this, a free would be great!

Thanks!</STRONG>
Try this
--------------------------------
You're crazy - you think you're going to change this silly little world... better see yourself a shrink
----------------------------------------------------------------
     
JeremyS  (op)
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jun 12, 2001, 11:38 AM
 
Thanks so much!!
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 13, 2001, 08:02 AM
 
You can also use Cascading Style Sheets to make an alternate stylesheet that gets used only when the user prints the page. This has the benefit of being completely transparent to the user; no "Click here for a printer-friendly version" or anything like that.

If your stylesheet is embedded, you can modify specific rules by using an @media(print) rule. If it's separate, use another link tag, and add the media="print" attribute to it (you might also want to add media="screen" to your main link tag, just to make sure).

I know this works in NS6 and OmniWeb. It should work in IE5, though I haven't tested it there. I don't know about iCab.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:32 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2