window.open with scrollbars=yes not working for NS 
Author Message
 window.open with scrollbars=yes not working for NS

I'm using jscript to do a popup window for a picture. I turn off toolbar,
location, and have the scrollbars=yes or no depending on size. I've noticed
that while this all works fine for IE6, when I try it in NS6 it all works
EXCEPT I'm not getting the scrollbars. Which is a bummer, because then a lot
of the picture is below the bottom of the window and the user won't be able
to view it.

Is there any way to make this work for both browsers???

any help greatly appreciated...
-dg



Mon, 18 Jul 2005 17:22:11 GMT  
 window.open with scrollbars=yes not working for NS
dan said:

Quote:

>I'm using jscript to do a popup window for a picture. I turn off toolbar,
>location, and have the scrollbars=yes or no depending on size. I've noticed
>that while this all works fine for IE6, when I try it in NS6 it all works
>EXCEPT I'm not getting the scrollbars. Which is a bummer, because then a lot
>of the picture is below the bottom of the window and the user won't be able
>to view it.

It's usually easier to point out your mistake if you
post the relevant code.
In the case of window.open(), Netscape 4 will ignore your
attributes argument if it contains spaces.


Mon, 18 Jul 2005 21:56:15 GMT  
 window.open with scrollbars=yes not working for NS
I had a space. All fixed - thanks, Lee.
-dg


Quote:
> dan said:

> >I'm using jscript to do a popup window for a picture. I turn off toolbar,
> >location, and have the scrollbars=yes or no depending on size. I've
noticed
> >that while this all works fine for IE6, when I try it in NS6 it all works
> >EXCEPT I'm not getting the scrollbars. Which is a bummer, because then a
lot
> >of the picture is below the bottom of the window and the user won't be
able
> >to view it.

> It's usually easier to point out your mistake if you
> post the relevant code.
> In the case of window.open(), Netscape 4 will ignore your
> attributes argument if it contains spaces.



Tue, 19 Jul 2005 04:26:48 GMT  
 window.open with scrollbars=yes not working for NS

Quote:

> I'm using jscript to do a popup window for a picture.

For a picture or for a document with only a picture in it? This is
important to know here.
window.open("image.gif", "", "scrollbars");
or
window.open("Popup.html", "", "scrollbars");

  I turn off toolbar,

Quote:
> location, and have the scrollbars=yes or no depending on size.

You should just set scrollbars=yes; if content overflows window inner
dimensions, tehn scrollbars will appear accordingly.

  I've noticed

Quote:
> that while this all works fine for IE6, when I try it in NS6 it all works
> EXCEPT I'm not getting the scrollbars.

When you set scrollbars=yes or scrollbars, then scrollbars will appear
only if needed, only if content overflows windows inner dimensions
(content area). The particular issue with MSIE 6 for Windows (and
possibly MSIE 5.x) is that the html node has the default declaration:

html {overflow-y:scroll; overflow:scroll;}

so, any browser window has inactive scrollbars regardless of content
issues. Proof of that is to open a "about:blank" window and you'll see
an [inactive but real] vertical scrollbar. Now, nobody there can say
that there is a need for scrollbars, right?

Which is a bummer, because then a lot

Quote:
> of the picture is below the bottom of the window and the user won't be able
> to view it.

> Is there any way to make this work for both browsers???

> any help greatly appreciated...
> -dg

I certainly can help as I'm familiar with details of this sort. Can you
give an url? Also, you need to specify if it's for which version
precisely: NS 6.1, NS 6.2.2,...?

DU



Tue, 19 Jul 2005 10:57:48 GMT  
 window.open with scrollbars=yes not working for NS
Thanks for your reply, DU. But I resolved the issue - I just
had a space in my "scrollbars = yes" callout. Changing it to
"scrollbars=yes" fixed it.
-dg


Quote:

> > I'm using jscript to do a popup window for a picture.

> For a picture or for a document with only a picture in it? This is
> important to know here.
> window.open("image.gif", "", "scrollbars");
> or
> window.open("Popup.html", "", "scrollbars");

>   I turn off toolbar,
> > location, and have the scrollbars=yes or no depending on size.

> You should just set scrollbars=yes; if content overflows window inner
> dimensions, tehn scrollbars will appear accordingly.

>   I've noticed
> > that while this all works fine for IE6, when I try it in NS6 it all
works
> > EXCEPT I'm not getting the scrollbars.

> When you set scrollbars=yes or scrollbars, then scrollbars will appear
> only if needed, only if content overflows windows inner dimensions
> (content area). The particular issue with MSIE 6 for Windows (and
> possibly MSIE 5.x) is that the html node has the default declaration:

> html {overflow-y:scroll; overflow:scroll;}

> so, any browser window has inactive scrollbars regardless of content
> issues. Proof of that is to open a "about:blank" window and you'll see
> an [inactive but real] vertical scrollbar. Now, nobody there can say
> that there is a need for scrollbars, right?

> Which is a bummer, because then a lot
> > of the picture is below the bottom of the window and the user won't be
able
> > to view it.

> > Is there any way to make this work for both browsers???

> > any help greatly appreciated...
> > -dg

> I certainly can help as I'm familiar with details of this sort. Can you
> give an url? Also, you need to specify if it's for which version
> precisely: NS 6.1, NS 6.2.2,...?

> DU



Wed, 20 Jul 2005 16:17:34 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Flag resizeable=yes not working in window.open with IE4

2. onClick to open selection in new Window - NS 4 works, IE 4 Fails

3. onClick to open selection in new Window - NS 4 works, IE 4 Fa ils

4. getting no scrollbars after window.open

5. Window.Open() suddenly does not work

6. window.open method not working

7. how to remove scrollbars w/ NS

8. Works in NS, but not IE (Japanese Characters)

9. Script works fine in IE, not in NS!

10. open windows in NS and IE?

11. window.open does not maximize the new window

12. it's work with windows NT not with Windows 95

 

 
Powered by phpBB® Forum Software