[Javascript] Print without confirmation

Peter Brunone peter at brunone.com
Fri Oct 3 10:37:00 CDT 2003


	"you", as in not really you, but something/someone presumed to
be you?

	This is for an intranet application that requires many pages to
be printed on command, and rather than ask for confirmation each time,
we thought it would be nice for the user to just click one button.

	It's IE only, it's not widely used, and like everything else
(e.g. closing the browser without confirmation), if people use it
without telling you, chances are you won't visit their site again, so it
has a built-in limiting mechanism.  Case in point:  this solution has
been around since at least IE 4.0, but you don't see a gazillion sites
using it :-)

-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of John Warner

I can't sat how disappointed I am to find out 'you' can make my printer
eat toner and paper without me (browser visiting your site) having a way
to say no. This strikes me as a major security problem.

Peter, glad you found an answer to your problem though.

John Warner
mailto:john at jwarner.com

> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> 
> 	Thanks, Walter; is there a parameter in there (maybe
> OLECMDID_PAGESETUP) that lets you specify landscape instead
> of the default portrait layout?
> 
> -Peter
> 
> -----Original Message-----
> From: javascript-bounces at LaTech.edu On Behalf Of Walter Torres
> 
> > -----Original Message-----
> > From: javascript-bounces at LaTech.edu
> > 
> > Hi all...
> > 
> >    Does anyone have some sample code for a solution that
> would let me
> > print without the print dialog box?  This only has to work
> in IE 5.5
> > and higher, so any MS proprietary ideas would be just fine.
> 
> I have a complete method that does this, and MORE!
> 
    http://www.faqts.com/knowledge_base/view.phtml/aid/9169

Yes, it only works in Windows IE.

Walter





More information about the Javascript mailing list