Re: "Printer-friendly" web pages

Subject: Re: "Printer-friendly" web pages
From: Dick Margulis <margulisd -at- comcast -dot- net>
To: "TECHWR-L" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Wed, 01 Dec 2004 08:29:34 -0500




tstorer -at- free -dot- fr wrote:

I've noticed that many websites have a "printer-friendly version" button
on certain pages. Click it and the information on those pages appears,
apparently still in HTML, in a way that prints out neatly using the
browser's Print command.

My question is: how the heck do they do that? Is that just smart HTML
design...?

Yep, that's pretty much it.

Typically the live content of a Web page resides in a database. The page is generated on the fly from a script. For example, in Microsoft's ASP technology (the one I'm most familiar with, although the basic idea is the same regardless of platform), the .asp file includes VBScript, SQL, JavaScript, and HTML code, the output of which is the HTML page served to the browser. Only the finished HTML goes out over the Internet. The work of creating that output stream is done by a program running on the server and interpreting the script. Think of the .asp file as a page template; it defines the graphic furniture around the edges, has spots for banners and ads (if present) that might be served by some third party, and has code that either grabs content directly from a database table, in the case of static copy, or somehow computes the content (think mapquest) based on information in a database.

Now a printer-friendly page is just another page template (.asp or otherwise) that accesses the same database content and presents it in a cleaner page, one that does not depend on frames, for example, or that has a simpler table structure that is guaranteed to fit all the copy within the width of the printed page. It also is set up with a white background and no border graphics, most likely.

Another feature that is sometimes added, just by using a different .css file and marking up the content properly, is hard page breaks, which make for neater printed output; but a lot of sites don't go that far.



^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ROBOHELP X5 - SEE THE ALL NEW ROBOHELP X5 IN ACTION!

RoboHelp X5 is a giant leap forward in Help authoring technology, featuring all new Word 2003 support, Content Management, Multi-Author support, PDF and XML support and much more! View an online demo: http://www.macromedia.com/go/techwrldemo

---
You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- techwr-l -dot- com
Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.



Previous by Author: RE: Seeking counsel - yet another difficult work situation (extremely long)
Next by Author: Re: usability study
Previous by Thread: "Printer-friendly" web pages
Next by Thread: RE: "Printer-friendly" web pages


What this post helpful? Share it with friends and colleagues:


Sponsored Ads