Dennis M. Marks wrote:
My script opens a window that is supposed to be resizable and
scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6
there is no scroll bar.
I have no idea why it is like that on NS 6. It's probably a bug. But
note that most people who ever used NS 6 are now all using NS 7.x or
Mozilla or Camino. I tried your page with NS 7.1 on windows and the
popup had scrollbars when the content area was larger/taller than the
window dimensions.
I am able to resize it smaller than the page but scrollbars still do not appear. What am I doing wrong. Is this just
a bug in the Mac version of Netscape. Please let me know if the popup
window is scrollable on your platform and do you see a problem with my
code.
The page is http://www.dcs-chico.com/~denmarks/amtrak.html
(just select a train with many stops such as California Zephyr)
The code that creates the window is in
http://www.dcs-chico.com/~denmarks/amtrakscripts.js
function createWindow() {
winStats="toolbar=no,location=no,directories=no,me nubar=no,scrollbars=yes,resizable=yes,width=625,he ight=600";
smallWindow=window.open("","",winStats);
};
You can write the function like this (more compact):
function createWindow() {
smallWindow = window.open("", "",
"scrollbars=yes,resizable=yes,width=625,height=600 ");
};
"(...) if you do supply the windowFeatures parameter, then (...) the
other features which have a yes/no choice are no by default."
http://devedge.netscape.com/library/...w.html#1202731
"(...) When the sFeatures parameter is specified, the features that are
not defined in the parameter are disabled."
http://msdn.microsoft.com/workshop/a...ods/open_0.asp
Note also that the requested height is too much for all 800x600 and
1024x768 scr. res. on windows since the availHeight (area for
applications; minus semi-permanent os-dependent applications like
windows' taskbar, MS-office quick launch bar, MS-magnifier, etc.) will
be smaller than 600. I think you should make the initial requested
height of smallWindow shorter than 600. The bottom part of the 625x600
popups were all [clipped] off the screen or under the window taskbar
over here.
The scripts in that page use a dangerous (IMO) number of
document.write(). I think the whole scripts could be written without any
document.write() and by using W3C DOM methods instead. Slashes are not
escaped in these calls and will generate validation errors.
My 2 cents
DU