Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Resizing

Status
Not open for further replies.

okiiyama

IS-IT--Management
Jan 3, 2003
269
US
My problem is taking place in a citrix environment with the citrix screen set to 95% of the actual screen...

Im using window.open to open a page with left=0 and top=0

On the page I open with window.open, I set the dimensions of the page using screen.height and screen.width.

On occasion the page may not be located with the top left corner at (0,0). Also the page sometimes does not have the proper dimensions.
I've tried inside of the window.open to use fullscreen=yes, that does make the page fullscreen, but the minimize and close buttons off the screen.

Does anyone have any suggestions on a better way of setting the page dimensions? I thought maybe there was a way to use the parent page's dimensions, but haven't seen anything about that. Also, I do need to use javascript because I need to hide the location bar.

BTW everyone is using IE to browse.

Thanks In Advance
 
I think what you're using should work. Everytime. Maybe if you show the code, there might be some glitch we could see that prevents it from working properly.
 
okay... Here is my code, BTW thanks for looking at this.
This code opens a passthrough page.
Code:
<a href="[URL unfurl="true"]http://www.xyz.com/passthrough.cfm">Link</a>[/URL]

Then on the passthrough page I use:
Code:
window.open('[URL unfurl="true"]https://www.xyz.com/ep/new/dashboard/agent/desktop.cfm','Dash','left=0,top=0,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');[/URL] window.opener=window.self; window.close();

And finally on the page in question (desktop.cfm) In the body tag I use:
Code:
<body onLoad="windowResize();">

And the function windowResize() code is:
Code:
function windowResize() {
    //Don't need *1.00, unless want page to be a percentage
    //of screen size
    var getHeight = screen.Height*1.00;
    var getWidth = screen.Width*1.00;
    window.resizeTo(getWidth, getHeight);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top