472,355 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,355 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 4246
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...

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.