Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making newWindow Scroll

 
rich werth
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4481
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try leaving out "scrollbars=yes"
im not sure, but my guess is that is the default anyway
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at my pop up generator
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good call Bear. That one got by me too.
 
rich werth
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot
it works great now!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic