G
Gérard Talbot
ASM wrote :
How do you know for sure that your popup is correctly sized for all the
visitors? Please elaborate.
http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_scrollbars
Of course these do not enter in the window.open's height but they do
reduce such height if the whole window can not be rendered entirely on
the screen of the user. Again, I'm pointing you to the dimension error
correction mechanism implemented in Mozilla-based browsers and MSIE 6
SP2: "No part of the new window can be initially positioned offscreen."
http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_and_dimension_error_correction
So, when you do height=600 and width=800, then I immediately know that
your requested dimensions will not appear as intended on all of your
800x600 scr. res. visitors and the height will also be adjusted for a)
several of your 1024x768 scr. res. visitors who can force several
toolbars on the secondary window and b) all your Opera 7+ users. So,
your code is not best. Your code assumes that a secondary window height
(viewing area, content area, viewport) can be 600px high: that is not
true for a very wide majority of users.
Even when they can be set in absolutely known sizes. No web developer
can know in advance and for sure what will be the exact dimensions of
the new secondary window to be created (inner viewing area). So if this
is unreliable, the best, safe, sound policy is to always allow the new
window to be created to be resizable, have scrollbars if needed.
at least popup resizability has to be planed
This is where we differ. You think you can establish such possibility in
advance: I think you can not because of many unknown factors unavailable
(user prefs, os settings, font settings, toolbar dimensions, etc.) to
scripts. So the safe and cautious policy should be to always include
resizable,scrollbars,status for many reasons and for reasons that are
mentioned at
http://developer.mozilla.org/en/docs/DOM:window.open
Gérard
If I have a doc sized (i.e. photo)
correct sized popup will not need scrollbars
How do you know for sure that your popup is correctly sized for all the
visitors? Please elaborate.
http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_scrollbars
and statusbar (not only IE-6-SP-2 force this, Opera, Safari ...)
doesn't enter in window.opens' height
Of course these do not enter in the window.open's height but they do
reduce such height if the whole window can not be rendered entirely on
the screen of the user. Again, I'm pointing you to the dimension error
correction mechanism implemented in Mozilla-based browsers and MSIE 6
SP2: "No part of the new window can be initially positioned offscreen."
http://developer.mozilla.org/en/docs/DOM:window.open#Note_on_position_and_dimension_error_correction
So, when you do height=600 and width=800, then I immediately know that
your requested dimensions will not appear as intended on all of your
800x600 scr. res. visitors and the height will also be adjusted for a)
several of your 1024x768 scr. res. visitors who can force several
toolbars on the secondary window and b) all your Opera 7+ users. So,
your code is not best. Your code assumes that a secondary window height
(viewing area, content area, viewport) can be 600px high: that is not
true for a very wide majority of users.
of course if doc to display in popup can't be set in absolutly known
sizes,
Even when they can be set in absolutely known sizes. No web developer
can know in advance and for sure what will be the exact dimensions of
the new secondary window to be created (inner viewing area). So if this
is unreliable, the best, safe, sound policy is to always allow the new
window to be created to be resizable, have scrollbars if needed.
at least popup resizability has to be planed
This is where we differ. You think you can establish such possibility in
advance: I think you can not because of many unknown factors unavailable
(user prefs, os settings, font settings, toolbar dimensions, etc.) to
scripts. So the safe and cautious policy should be to always include
resizable,scrollbars,status for many reasons and for reasons that are
mentioned at
http://developer.mozilla.org/en/docs/DOM:window.open
Gérard