You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Johnson <ch...@gmail.com> on 2005/05/19 23:00:07 UTC
Opening a Form in a New Window - Help!
Hi there
I'm trying to open up a new window from my struts application which will
contain "help" information. The link opening the window looks like this so
far
<html:link action="help.do <http://help.do>" target="_help">Help</html:link>
What I'd like to do is specify the following options
window.height=400;
window.width=300;
window.status=yes;
window.toolbar=no;
window.menubar=no;
window.location=no;
which I'd normally do using a javascript method... like this:
<script>
function openHelpWindow(){
var helpWindow = window.open("","_help",
"height=300,width=450,status=yes,toolbar=no,menubar=no,location=no");
return helpWindow;
}
</script>
Does anyone know how I might specify these options when opening up a new
window, then submitting a struts form to said window?
--
-Dave
ChaChaNY@Gmail.com
Re: Opening a Form in a New Window - Help!
Posted by David Johnson <ch...@gmail.com>.
I got it.
My link is as follows:
<html:link href="javascript:openHelpWindow();">Help</html:link>
which calls the following:
<script>
function openHelpWindow(){
var helpWindow = window.open("","_help",
"height=300,width=450,status=yes,toolbar=no,menubar=no,location=no");
helpWindow.location = "./help.action";
}
</script>
On 5/19/05, David Johnson <ch...@gmail.com> wrote:
>
> Hi there
> I'm trying to open up a new window from my struts application which will
> contain "help" information. The link opening the window looks like this so
> far
>
> <
> html:link action="help.do <http://help.do/>" target="_help">Help </
> html:link>
> What I'd like to do is specify the following options
> window.height=400;
> window.width=300;
> window.status=yes;
> window.toolbar=no;
> window.menubar=no;
> window.location=no;
> which I'd normally do using a javascript method... like this:
>
> <script>
> function openHelpWindow() {
> var helpWindow = window.open("","_help" ,
> "height=300,width=450,status=yes,toolbar=no,menubar=no,location=no");
> return helpWindow;
> }
> </script>
> Does anyone know how I might specify these options when opening up a new
> window, then submitting a struts form to said window?
>
> --
> -Dave
> ChaChaNY@Gmail.com
>
--
-Dave
ChaChaNY@Gmail.com
Re: Opening a Form in a New Window - Help!
Posted by David Johnson <ch...@gmail.com>.
hey there
What meant was that I wanted to open a new browser that had these options
set:
> window.height=400;
> window.width=300;
> window.status=yes;
> window.toolbar=no;
> window.menubar=no;
> window.location=no;
so that it isnt just another same size browser with tiny help text in it.
On 5/19/05, Frank W. Zammetti <fz...@omnytex.com> wrote:
>
> Hello,
>
> In order to set those options you will have to use Javascript. The
> target attribute is a fairly dumb animal in that it just opens said
> target with the location you specify. Anything more requires scripting.
>
> I wasn't clear on what you meant by:
>
> "Does anyone know how I might specify these options when opening up a
> new window, then submitting a struts form to said window?"
>
> Specifically, the part about submitting a struts form to said window...
> can you explain that a different way because I'm not sure what your
> trying to accomplish from that.
>
> Frank
>
> David Johnson wrote:
> > Hi there
> > I'm trying to open up a new window from my struts application which will
> > contain "help" information. The link opening the window looks like this
> so
> > far
> >
> > <html:link action="help.do <http://help.do> <http://help.do>"
> target="_help">Help</html:link>
> > What I'd like to do is specify the following options
> >
> > window.height=400;
> > window.width=300;
> > window.status=yes;
> > window.toolbar=no;
> > window.menubar=no;
> > window.location=no;
> > which I'd normally do using a javascript method... like this:
> >
> > <script>
> > function openHelpWindow(){
> > var helpWindow = window.open("","_help",
> > "height=300,width=450,status=yes,toolbar=no,menubar=no,location=no");
> > return helpWindow;
> > }
> > </script>
> > Does anyone know how I might specify these options when opening up a new
> > window, then submitting a struts form to said window?
> >
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
-Dave
ChaChaNY@Gmail.com
Re: Opening a Form in a New Window - Help!
Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
Hello,
In order to set those options you will have to use Javascript. The
target attribute is a fairly dumb animal in that it just opens said
target with the location you specify. Anything more requires scripting.
I wasn't clear on what you meant by:
"Does anyone know how I might specify these options when opening up a
new window, then submitting a struts form to said window?"
Specifically, the part about submitting a struts form to said window...
can you explain that a different way because I'm not sure what your
trying to accomplish from that.
Frank
David Johnson wrote:
> Hi there
> I'm trying to open up a new window from my struts application which will
> contain "help" information. The link opening the window looks like this so
> far
>
> <html:link action="help.do <http://help.do>" target="_help">Help</html:link>
> What I'd like to do is specify the following options
>
> window.height=400;
> window.width=300;
> window.status=yes;
> window.toolbar=no;
> window.menubar=no;
> window.location=no;
> which I'd normally do using a javascript method... like this:
>
> <script>
> function openHelpWindow(){
> var helpWindow = window.open("","_help",
> "height=300,width=450,status=yes,toolbar=no,menubar=no,location=no");
> return helpWindow;
> }
> </script>
> Does anyone know how I might specify these options when opening up a new
> window, then submitting a struts form to said window?
>
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org