You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by senthil Kumar <se...@tarangtech.com> on 2005/02/10 06:18:46 UTC

How to Resize the window in my popup

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();
   }

Re: How to Resize the window in my popup

Posted by senthil Kumar <se...@tarangtech.com>.
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" <fz...@omnytex.com>
To: "Struts Users Mailing List" <us...@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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to Resize the window in my popup

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org