...

View Full Version : Printing opener window (from popup)



chimly
03-15-2005, 04:14 AM
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?)

glenngv
03-15-2005, 04:59 AM
Try focusing first to the opener.

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

chimly
03-15-2005, 05:06 AM
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.)

glenngv
03-15-2005, 05:33 AM
Try this:

in opener page:

function printIt(){
window.focus();
window.print();
}

in popup:

opener.printIt();

chimly
03-15-2005, 05:34 AM
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.

chimly
03-15-2005, 05:37 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum