File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 4339
    
    2

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


SCJP
Visit my download page
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    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: 805
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: 60057
    
  65

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


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

Joined: Apr 09, 2002
Posts: 805
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://aspose.com/file-tools
 
subject: Making newWindow Scroll
 
Similar Threads
open new window
sometimes window not opened
closing the child window
Opening HTTPS link in same popup
Can I close windows opened with "target=_blank"??