473,387 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why Are Scrollbars Missing

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
5 4314
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Konrad Koller | last post by:
For a card playing game I constructed a layout of 49 playing cards (size of each: x=71, y=96) which are arranged in a 7X7 matrix side by side. Accordingly the pysical size of the Canvas is x=71*7,...
6
by: adrien | last post by:
Hi, (also posted in netscape.public.mozilla.browser) i use netscape 7 and want to hide the scrollbars of the window when something happens. I tried this: window.scrollbars.visible=false...
24
by: Nobody | last post by:
Okay, you are all so smart in here. Answer me this: IE6 in standards mode doesn't seem to hide scrollbars on the body element (overflow:hide) Ain't this a quandary. I have it in my head that I...
0
by: newsgroupscnhs | last post by:
Hi, I have an app with many forms that contain grids. On my development and test machines everything is fine. I just deployed to my beta site and all my grids are missing their scrollbars! ...
1
by: Andi Plotsky | last post by:
I have a subform where I dynamically change the SourceObject dependent upon the User's response to questions on the Main form. My problem is that the scrollbars do not show up on either the Main...
0
by: Jeff | last post by:
Hi - How can I have a DataList display on an ASP.NET page with a limited height and vertical scrollbars? My aspx code is below (no scrollbars). Am I missing a property somewhere? Thanks...
1
by: dbuchanan | last post by:
Hello, My dataGridView is configured with the "ScrollBars" set to both. When the form is displayed no scroll bars appear. Therefore I don't have access to the columns beyond the right side of...
2
by: needin4mation | last post by:
Does anyone know what would cause a popup with scrollbars=1 to suddenly lose its scrollbars? I have a popup from window.open (....scrollbars=1..) and it used to be a normal window that would have...
5
by: Charlie Brown | last post by:
I have a user control where I override the paint event and draw the control myself. When I sraw outside of the visible area, I need the scrollbars to appear and allow the user to scroll the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.