You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joyce Tang <jt...@irise.com> on 2001/06/13 20:20:17 UTC
How do make sure that the ActionForward will be on the whole scre
en
Here is my problem
I have a frameset. There is a button on the bottom frame. When the user
click on the button, the frameset need to be replaced with a non-frameset
JSP page. How should I do this?
Do I do this in the ActionForward?
Thanks a lot,
JT
RE: How do make sure that the ActionForward will be on the whole screen
Posted by Abraham Kang <ab...@infogain.com>.
Thank Pete,
Abraham
> -----Original Message-----
> From: Peter Alfors [mailto:peter.alfors@irista.com]
> Sent: Wednesday, June 13, 2001 2:37 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: How do make sure that the ActionForward will be on the
> whole screen
>
>
> In an anchor:
> <A href="myNewPage.html" target="_top">link text</A>
> or in a button (parent frame):
> <INPUT name="blah"
> onClick="javascript:window.parent.document.location.replace('myNew
> Page.html')">
>
> or in a button, uppermost frame (in cases of multiple framesets):
> <INPUT name="blah"
> onClick="javascript:window.top.document.location.replace('myNewPag
> e.html')">
>
> -- you will want to check the syntax for the javascript.
>
> HTH,
> Pete
>
> Abraham Kang wrote:
>
> > Joyce, I do not think there is a struts way of doing this but you
> > could return a page with Javascript in it to reload the parent frame
> > of your child frame.You will need to double check my syntax ;^
> > )<SCRIPT
> >
> language="JavaScript">parent.location.href="<%=urlOfAction%>";</Sc
> ript>--Abraham
> >
> > -----Original Message-----
> > From: Joyce Tang [mailto:jtang@irise.com]
> > Sent: Wednesday, June 13, 2001 11:20 AM
> > To: 'struts-user@jakarta.apache.org'
> > Subject: How do make sure that the ActionForward will be on
> > the whole screen
> >
> > Here is my problem
> >
> > I have a frameset. There is a button on the bottom frame.
> > When the user click on the button, the frameset need to be
> > replaced with a non-frameset JSP page. How should I do
> > this?
> >
> > Do I do this in the ActionForward?
> > Thanks a lot,
> >
> > JT
> >
>
Re: How do make sure that the ActionForward will be on the whole screen
Posted by Peter Alfors <pe...@irista.com>.
In an anchor:
<A href="myNewPage.html" target="_top">link text</A>
or in a button (parent frame):
<INPUT name="blah"
onClick="javascript:window.parent.document.location.replace('myNewPage.html')">
or in a button, uppermost frame (in cases of multiple framesets):
<INPUT name="blah"
onClick="javascript:window.top.document.location.replace('myNewPage.html')">
-- you will want to check the syntax for the javascript.
HTH,
Pete
Abraham Kang wrote:
> Joyce, I do not think there is a struts way of doing this but you
> could return a page with Javascript in it to reload the parent frame
> of your child frame.You will need to double check my syntax ;^
> )<SCRIPT
> language="JavaScript">parent.location.href="<%=urlOfAction%>";</Script>--Abraham
>
> -----Original Message-----
> From: Joyce Tang [mailto:jtang@irise.com]
> Sent: Wednesday, June 13, 2001 11:20 AM
> To: 'struts-user@jakarta.apache.org'
> Subject: How do make sure that the ActionForward will be on
> the whole screen
>
> Here is my problem
>
> I have a frameset. There is a button on the bottom frame.
> When the user click on the button, the frameset need to be
> replaced with a non-frameset JSP page. How should I do
> this?
>
> Do I do this in the ActionForward?
> Thanks a lot,
>
> JT
>
RE: How do make sure that the ActionForward will be on the whole screen
Posted by Abraham Kang <ab...@infogain.com>.
How do make sure that the ActionForward will be on the whole screenJoyce,
I do not think there is a struts way of doing this but you could return
a page with Javascript in it to reload the parent frame of your child frame.
You will need to double check my syntax ;^ )
<SCRIPT language="JavaScript">
parent.location.href="<%=urlOfAction%>";
</Script>
--Abraham
-----Original Message-----
From: Joyce Tang [mailto:jtang@irise.com]
Sent: Wednesday, June 13, 2001 11:20 AM
To: 'struts-user@jakarta.apache.org'
Subject: How do make sure that the ActionForward will be on the whole
screen
Here is my problem
I have a frameset. There is a button on the bottom frame. When the user
click on the button, the frameset need to be replaced with a non-frameset
JSP page. How should I do this?
Do I do this in the ActionForward?
Thanks a lot,
JT