Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Printing opener window (from popup)

    opener.print();


    Pretty straight forward... It's working in every browser except OS X Explorer.

    Should I be using window.name perhaps? (Or something similar?)

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,047
    Thanks
    0
    Thanked 251 Times in 247 Posts
    Try focusing first to the opener.

    opener.focus();
    opener.print();

  • #3
    New Coder
    Join Date
    Jan 2005
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by glenngv
    Try focusing first to the opener.

    Didn't work.. although it's a nice touch, I think I'll leave it!


    It could just be IE for os X that doesn't work. (No surprize.)

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,047
    Thanks
    0
    Thanked 251 Times in 247 Posts
    Try this:

    in opener page:
    Code:
    function printIt(){
      window.focus();
      window.print();
    }
    in popup:
    Code:
    opener.printIt();

  • #5
    New Coder
    Join Date
    Jan 2005
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Save your efforts... a little more research informed me that a skillful AppleScript may be the only solution, due to IE mac's poor support for javascript.


    Thanks anyway.

  • #6
    New Coder
    Join Date
    Jan 2005
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by glenngv
    Try this:

    ...

    Yup, that's no good either. I'm giving up on non-standard methods and not support this browser. Most Mac users don't use IE anyways.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •