Re: Printer friendly pages (was: SF.net SVN: squirrelmail: [13121] trunk/squirrelmail)

"Fredrik Jervfors" <[email protected]>
Newsgroups gmane.mail.squirrelmail.cvs,gmane.mail.squirrelmail.devel
Message-ID <[email protected]>
>> Add preliminary printerfriendly-through-css feature. This adds a new
>> print.css stylesheet that is used when using the browser's print (or
>> print preview) function. A problem is that due to the frames, it won't
>> work if selecting File -> Print because this will print webmail.php
>> instead of read_body. To see it in action, open read_body on its own and
>> use File -> Print Preview.
>
> I didn't try it, but nice work.

I too didn't try it, but I like the idea.

>> It would be nice if this could replace the printer_friendly function
>> over time, because it's purely css based and thus doesn't require extra
>> code. For that we need to finetune the sheet and most importantly,
>> conquer the frames-problem in some smart way.
>
> Many many websites use a popup window for print-ready pages.

With the possibilities in CSS they shouldn't have to any more, but as
Thijs points out that only works if the original idea behind the WWW is
respected: that information is displayed as pages and not in frames. When
(hopefully not "if") we have a framless version we could dump the pop-ups
altogether (and have a plugin with pop-ups for those who really wants
them).

What we could do already is to remove the printer friendly files from
"/src/" and use "/src/read_body.php" with another CSS to provide the clean
look needed for printing. Unfortunately I don't have time to do this
myself. Volunteers, please step up!

Sincerely,
Fredrik

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.