GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes How to Exit  from frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to Exit  from frame" Watch "How to Exit  from frame" New topic
Author

How to Exit from frame

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

Hi

I have developed an application in which there are four frames, header,left,right and footer. If any error occurs in the left frame content ex: if session expires/error occurs when I click on left pane then the error is showing only in left pane, cant i show this error in the complete main page? how can i exit from this left frame?

thanks in advance
santhosh


santhosh<br />SCJP,SCWCD
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It is only going to show in that one frame since that is the only thing that is posting back. You would have to basically add some JavaScript code to your error page that would replace the frameset.

<script>
parent.window.location.href="yourPage.jsp";
</script>

Eric
 
GeeCON Prague 2014
 
subject: How to Exit from frame