Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes Making newWindow Scroll Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Making newWindow Scroll" Watch "Making newWindow Scroll" New topic

Making newWindow Scroll

rich werth
Ranch Hand

Joined: Sep 21, 2001
Posts: 57
Hello I have some code that creates a new window. The new window passes some value to a servlet and the servlet populates that window with a jsp. I need the jsp to be in a scrollable window. I create the new window with this code.
var newWindow
function makeNewWindow() {
newWindow ="splitCharge.html", "newWindow", "height=500,width=775, scrollbars=yes")

It scrolls in IE but not in Netscape. Can someone tell me what I did wrong?
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4351

try leaving out "scrollbars=yes"
im not sure, but my guess is that is the default anyway

Visit my download page
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
look at my pop up generator
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

Al -
We generally take posts such as yours as a form of hijacking. Please do not interrupt a thread with a "look what I can do" link unless it's directly relevant to the topic at hand.

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
Try rearranging the order of the parameters to the method (i.e. put scrollbars=yes or scrollbars=true before height and width). Im not sure if itll work but Netscape is much more particular than IE as you may have noticed.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63529

Netscape rarely needs any logical reason to exhibit completely non-deterministic behavior. I have the scars to prove it.
In this case, I'd also leave out the space character before or after commas in the properties string. Yes, I think it's that picky.

[Asking smart questions] [About Bear] [Books by Bear]
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 832
Good call Bear. That one got by me too.
rich werth
Ranch Hand

Joined: Sep 21, 2001
Posts: 57
Thanks a lot
it works great now!
I agree. Here's the link:
subject: Making newWindow Scroll
It's not a secret anymore!