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
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
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 =
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();
}
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 );
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
6 matches
Mail list logo