W3C home > Mailing lists > Public > public-webapi@w3.org > July 2006

Re: printing events and web applications

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Mon, 17 Jul 2006 10:25:33 +1000
Message-ID: <44BAD8FD.3020400@lachy.id.au>
To: Dave Raggett <dsr@w3.org>
CC: public-webapi@w3.org

Dave Raggett wrote:
> Internet Explorer provides two events that are very useful
> for web applications involving dynamic html when it comes to
> printing. These are onbeforeprint and onafterprint.
> 
> As an example, consider HTML Slidy
> 
>     http://www.w3.org/Talks/Tools/Slidy
> 
> Slidy uses CSS for layout and a linked script to present div elements as 
> slides, one slide at time. The other slides are
> hidden by setting the div element's display property to none and 
> visibility to hidden.
> 
> This looks great for presentation purposes, but if the user tries
> to print the page then the browser will only print the currently
> visible slide. Most of the time, that isn't what people expect.
> Instead they want to have all of the slides printed.

This use case is more easily handled using a print stylesheet.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Monday, 17 July 2006 00:25:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT