Page 1 of 1

Opening and printing pop-up windows

Posted: Mon Oct 07, 2002 9:52 am
by lovasco
dear folks,
i have 2 questions:

1. when opening a new window (window.open), is it possible to have it automatically maximized ? the width attribute accepts a fixed amount of pixels only and we may have displays with different resolutions (800 or 1024).

2. when printing a web page (window.print), the printer selection window is displayed. Is it possible to skip this interaction and have the page be automatically printed without operator's intervention, same as pressing the printer icon on the toolbar of IE ? I have a php application that may build several reports at the same time and i would like to have them printed automatically without having to press the OK button for each one.

thanks in advance,
luca

Posted: Mon Oct 07, 2002 10:39 am
by mydimension
1) while im not sure, i think you can detect a users desktop dimensions and then just send that to your pop up function

2)no, because it could be mis-constude as an attack so that functionality as been completely disabled from javascript. you need interaction.

Posted: Mon Oct 07, 2002 10:45 am
by nielsene
However you might be able to make your reports into a single document so that they only have click ok once....

Posted: Tue Oct 08, 2002 10:34 am
by lovasco
I found a way to open a new window in fullscreen mode. Just code:

window.open("pagename.html","","fullscreen");

The only limitation is that we need a window.close button or type Alt-F4 to close the window.

Thanks a lot.
Luca