By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

Why Are Scrollbars Missing

P: n/a
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 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

--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
In article <02*************************@dcsi.net>, de******@dcsi.net
enlightened us with...
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 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.


Worked fine in NN6.2 and 7.1 on Windows 2K and NC4.76 on Unix Solaris.

--
--
~kaeli~
The definition of a will?... (It's a dead giveaway.)
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2

P: n/a
DU
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

Jul 20 '05 #3

P: n/a
DU wrote on 02 Dec 2003:
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.


I'd just like to point out that the write() and writeln() methods
/are/ part of DOM (the HTMLDocument interface), but I know what you
meant. It might have been better to say the Document factory methods,
createElement(), createTextNode(), and so forth.

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #4

P: n/a
In article <bq**********@news.eusc.inter.net>, DU
<dr*******@hotWIPETHISmail.com> wrote:
You can write the function like this (more compact):

function createWindow() {
smallWindow = window.open("", "",
"scrollbars=yes,resizable=yes,width=625,height=600 ");
};

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.


Thank you for your advice. I have changed the window.open. I do not
know any other methods to replace document.write. I only do it for fun
and do not wish to get into "W3C DOM methods" which I know nothing
about.

Be my guest and give me an example but I may just leave it as it is.

--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #5

P: n/a
DU
Michael Winter wrote:
DU wrote on 02 Dec 2003:

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.

I'd just like to point out that the write() and writeln() methods
/are/ part of DOM (the HTMLDocument interface)


Yes. DOM 2 HTML specifications.

, but I know what you meant. It might have been better to say the Document factory methods,
createElement(), createTextNode(), and so forth.

Mike


Right! :) document.write() is general and not specific like other DOM
methods which append, change, create, modify, remove, delete, etc.. DOM
nodes and document.

DU

Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.