Re: How to Resize the window in my popup
I don't think that's possible, unless you can figure out a way to calculate the size of the content that will appear. You might be able to open the window and place everything within a div, then read it's innerwidth style attribute and set the size of the window (it is possible to resize an existing windows through CSS). Not sure that will work, just thinking out loud. Frank -Original Message- From: senthil Kumar[EMAIL PROTECTED] Sent: 2/10/05 1:46:24 AM To: Struts Users Mailing Listuser@struts.apache.org, [EMAIL PROTECTED][EMAIL PROTECTED] Subject: Re: How to Resize the window in my popup Sir., Now it is comming, thanks. How to set autosize of the Window. I mean without scroll bar the window size show according to the data available in window. Thanks in advance. - Original Message - From: Frank W. Zammetti [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, February 10, 2005 10:57 AM Subject: Re: How to Resize the window in my popup Simply add width and height to your window.open() call parameters... function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.v alue +,previewwin,previewwin,width=1180,height=924,scrollbars=yes,resizabl e=yes, location=no ); previewSummary.focus(); } ...just change them to the size you want. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com senthil Kumar wrote: my code is here. function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.v alue +,previewwin,previewwin,scrollbars=yes,resizable=yes, location=no ); previewSummary.focus(); } - [Message truncated. Tap Edit-Mark for Download to get remaining portion.] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Resize the window in my popup
I don't think that's possible, unless you can figure out a way to calculate the size of the content that will appear. You might be able to open the window and place everything within a div, then read it's innerwidth style attribute and set the size of the window (it is possible to resize an existing windows through CSS). Not sure that will work, just thinking out loud. Frank -Original Message- From: senthil Kumar[EMAIL PROTECTED] Sent: 2/10/05 1:46:24 AM To: Struts Users Mailing Listuser@struts.apache.org, [EMAIL PROTECTED][EMAIL PROTECTED] Subject: Re: How to Resize the window in my popup Sir., Now it is comming, thanks. How to set autosize of the Window. I mean without scroll bar the window size show according to the data available in window. Thanks in advance. - Original Message - From: Frank W. Zammetti [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, February 10, 2005 10:57 AM Subject: Re: How to Resize the window in my popup Simply add width and height to your window.open() call parameters... function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.v alue +,previewwin,previewwin,width=1180,height=924,scrollbars=yes,resizabl e=yes, location=no ); previewSummary.focus(); } ...just change them to the size you want. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com senthil Kumar wrote: my code is here. function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.v alue +,previewwin,previewwin,scrollbars=yes,resizable=yes, location=no ); previewSummary.focus(); } - [Message truncated. Tap Edit-Mark for Download to get remaining portion.] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Resize the window in my popup
Here's a bit of code to put into the onload() event handler of your dialog. (This has only been tested on IE.) var chromeHeight = /^[0-9]+/.exec(window.dialogHeight) - document.body.clientHeight; var contentHeight = document.all.mainLayer.offsetHeight; window.dialogHeight = (contentHeight + chromeHeight) +px; The chromeHeight variable determines the total height of the window chrome (title bar, border, etc.). The content height gets the height of the document's content (all of our content in this window is contained in a single div named 'mainLayer') -- Jeff Frank W. Zammetti wrote: I don't think that's possible, unless you can figure out a way to calculate the size of the content that will appear. You might be able to open the window and place everything within a div, then read it's innerwidth style attribute and set the size of the window (it is possible to resize an existing windows through CSS). Not sure that will work, just thinking out loud. Frank -Original Message- From: senthil Kumar[EMAIL PROTECTED] Sent: 2/10/05 1:46:24 AM To: Struts Users Mailing Listuser@struts.apache.org, [EMAIL PROTECTED][EMAIL PROTECTED] Subject: Re: How to Resize the window in my popup Sir., Now it is comming, thanks. How to set autosize of the Window. I mean without scroll bar the window size show according to the data available in window. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Resize the window in my popup
Simply add width and height to your window.open() call parameters... function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.value +,previewwin,previewwin,width=1180,height=924,scrollbars=yes,resizable=yes, location=no ); previewSummary.focus(); } ...just change them to the size you want. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com senthil Kumar wrote: my code is here. function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.value +,previewwin,previewwin,scrollbars=yes,resizable=yes, location=no ); previewSummary.focus(); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Resize the window in my popup
Sir., Now it is comming, thanks. How to set autosize of the Window. I mean without scroll bar the window size show according to the data available in window. Thanks in advance. - Original Message - From: Frank W. Zammetti [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, February 10, 2005 10:57 AM Subject: Re: How to Resize the window in my popup Simply add width and height to your window.open() call parameters... function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.v alue +,previewwin,previewwin,width=1180,height=924,scrollbars=yes,resizabl e=yes, location=no ); previewSummary.focus(); } ...just change them to the size you want. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com senthil Kumar wrote: my code is here. function MM_callProjectSummary() { previewSummary = window.open(ViewProjectSummary.do?projectId=+document.forms[0].projectId.v alue +,previewwin,previewwin,scrollbars=yes,resizable=yes, location=no ); previewSummary.focus(); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]