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/14 00:02:01 UTC

RE: How do make sure that the ActionForward will be on the whole screen

 Thanks for the help.

However, my button is linked to a *.do action.  Where do I put these
JavaScript then?

-----Original Message-----
From: Peter Alfors
To: struts-user@jakarta.apache.org
Sent: 6/13/01 2:36 PM
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('myNewPage.h
tml')">

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
>
 <<Card for Peter Alfors>>