• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

scrollbars and you

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an app that needs to open another window. My problem is that even though I have scrollbars=1 in the open() command, there are no scrollbars. And they are needed - content is off the bottom of the screen.

My issue probably relates to the dynamic nature of my page - a lot of the heights are calculated, items super-imposed, and otherwise hidden/not hidden depending on the state (sadly the heights are hardcoded in the css file.)

Is there a way to make the page rethink its need for scrollbars? Here's my 'new window' javascript:



Ah, this fails in IE and FF. I have not tried any other browsers. The users use IE 7 exclusively.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That window would be bigger than my monitor on my laptop.

If you just call

window.open(this.href)

does it open with scrollbars?

Eric
 
Ranch Hand
Posts: 121
Mac Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dose your current window is showing scroll bar, if that is the case when you use this.href definitely the new window will have scroll bar
 
Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, getting distracted by another project.

The parent window has scroll bars, Mr Suresh.

more to come.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic