• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

logging what is printed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way using javascript(or jsf)to test to see if something has actually been printed??

I'm already using a different print stylesheet (which works awesome..so much better than making print versions of pages)

<LINK href="/theme/stylesheet.css" rel="stylesheet"
type="text/css" title="default" media="screen">

<LINK href="/theme/print.css" title="print" rel="stylesheet"
media="print">

I call the window.print() method and that works great too. The issue isn't how to get it to print but rather to confirm that the print actually happened.

window.print() only opens the print dialog-people can choose to cancel. My need is one of logging what was actually printed.

Any ideas would be helpful...

perhaps using the browser to confirm that the print button on the dialog box was clicked or testing the media type in the link for css.

my web application is JSF with javascript.

Thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nothing you can do with JavaScript to see if the page was actually printed.

Eric
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic