GeeCON Prague 2014*
The moose likes Servlets and the fly likes closing a page with 3 frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "closing a page with 3 frames" Watch "closing a page with 3 frames" New topic
Author

closing a page with 3 frames

Relu Ovidiu
Greenhorn

Joined: Mar 18, 2004
Posts: 12
I have a page with 3 frame: top, left, right
In the "top" a have a link to a servlet. In that servlet a redirect to a new page... without frame... but it is opened in the "top" frame...I want to close the page with 3 frame a replace with this new page.. How can i do that??? PLS.. I need urgent help! THNX!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

You need to use Javascript within the framed page to tell the top-most page to close.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
The words "close the page" are misleading - it looks like you want to replace the framed page with new content. In order to do that the link must specify a "target" for the new page. As I recall, target="_parent" is what you want.
This is really a HTML problem - every servlet programmer should have a HTML reference handy.
Bill
 
GeeCON Prague 2014
 
subject: closing a page with 3 frames