about window.print

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • q2005

    #1

    about window.print

    Hi, All

    Is that posible to start to print atraight away without the window's "print"
    prompt when I do window.print()? Thank you!


    Jack


  • David Dorward

    #2
    Re: about window.print

    q2005 wrote:
    [color=blue]
    > Is that posible to start to print atraight away without the window's
    > "print" prompt when I do window.print()? Thank you![/color]

    No.

    ....
    <script type="text/javascript">
    while (true) {
    window.print('n oprompt')
    }
    </script>

    .... it would be way too easy to cause problems.

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • Andrew Thompson

      #3
      Re: about window.print

      On Sat, 16 Oct 2004 07:43:02 +0100, David Dorward wrote:
      [color=blue]
      > q2005 wrote:
      >[color=green]
      >> Is that posible to start to print atraight away without the window's
      >> "print" prompt[/color][/color]
      ...[color=blue]
      > No.[/color]
      ....[color=blue]
      > ... it would be way too easy to cause problems.[/color]

      If you still do not understand *why*, consider this.

      You surf into some page from Google, looking for 'widgets'..

      You hit a site that has *lots* of *great* specials they want
      to tell you about, and they know thay cannot fit them on a single
      web-page that the visitor hits. 'Solution'? Trigger a print of
      their 400 page full color catalog when you arrive at the page.

      Sometimes the user will be sitting beside the printer, and
      will cancel the print (which is 'bad') but often the print
      comes out at a networked printer in another room, and gets
      fully printed before the user realizes.

      The user is hardly going to throw it away then, are they?
      And even if they do, it is their 20c a page they wasted -
      no skin off the advertiser's nose.

      --
      Andrew Thompson
      http://www.PhySci.org/codes/ Web & IT Help
      http://www.PhySci.org/ Open-source software suite
      http://www.1point1C.org/ Science & Technology
      http://www.lensescapes.com/ Images that escape the mundane

      Comment

      • Fred Oz

        #4
        Re: about window.print

        Andrew Thompson wrote:
        [snip][color=blue]
        > If you still do not understand *why*, consider this.[/color]
        [snip]

        Andy, you expect the worst in people...

        Imagine also that I've got my printer set up with very expensive glossy
        paper (up to $5 per page) and the above catalogue spews forth - I'd
        come looking for you!!


        Cheers, Fred.

        Comment

        • Andrew Thompson

          #5
          Re: about window.print

          On Sat, 16 Oct 2004 18:57:18 +1000, Fred Oz wrote:
          [color=blue]
          > Andy, you expect the worst in people...[/color]

          Mebe, I am basing it on my own psyche. What makes you think
          I am referring to *other* people (..other than the deliberate
          mis-direction I put in the original words, of course)?

          [ ..and it's 'Andrew', just thought I'd point that out. ]
          [color=blue]
          > Imagine also that I've got my printer set up with very expensive glossy
          > paper (up to $5 per page)[/color]

          $5 per page!! Phew.. no wonder I don't have a printer any more.
          [color=blue]
          >..and the above catalogue spews forth - I'd
          > come looking for you!![/color]

          (chuckles weakly) I hope I've managed to convince everybody
          I'm posting from Australia - that'll fool 'em.. ;-)

          --
          Andrew Thompson
          http://www.PhySci.org/codes/ Web & IT Help
          http://www.PhySci.org/ Open-source software suite
          http://www.1point1C.org/ Science & Technology
          http://www.lensescapes.com/ Images that escape the mundane

          Comment

          Working...