aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Making newWindow Scroll Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Making newWindow Scroll" Watch "Making newWindow Scroll" New topic
Author

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 = window.open("splitCharge.html", "newWindow", "height=500,width=775, scrollbars=yes")
newWindow.focus()
}

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

Joined: Oct 21, 2000
Posts: 4095
    
    1
try leaving out "scrollbars=yes"
im not sure, but my guess is that is the default anyway


SCJP
Eric Pascarello
author
Rancher

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

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: 788
Rich,
Try rearranging the order of the parameters to the window.open() 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.
Rob
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

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.
hth,
bear


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 788
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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Making newWindow Scroll
 
Similar Threads
sometimes window not opened
closing the child window
Can I close windows opened with "target=_blank"??
open new window
Opening HTTPS link in same popup