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

Re: printing events and web applications

From: Dave Raggett <dsr@w3.org>
Date: Sun, 16 Jul 2006 17:37:37 +0100 (BST)
To: public-webapi@w3.org
Message-ID: <Pine.LNX.4.62.0607161733510.7472@localhost.localdomain>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 16 Jul 2006, Dave Raggett wrote:

> A work around is to provide a printer button as part of the page's 
> user interface. This can invoke a script that makes the necessary 
> rearrangements, invokes window.print() and then tidies up 
> afterwards.

Actually the above work around isn't without problems as there isn't 
a clean way to know when to apply the tidying up. Doing so 
immediately after calling window.print() doesn't work as the print 
function is typically delayed until the current script handler 
returns to the browser.

This makes the case for the onbeforeprint and onafterprint events
even stronger!

  Dave Raggett <dsr@w3.org>  W3C lead for multimodal interaction
  http://www.w3.org/People/Raggett +44 1225 866240 (or 867351)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEumtXb3AdEmxAsUsRArsTAKCxRHFsaWdXOtXWcVzGXojCE9YStACgpYf+
IXdXYbI+ZlgNTseBbY0JZTY=
=q09q
-----END PGP SIGNATURE-----
Received on Sunday, 16 July 2006 16:37:54 GMT

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