• Post Reply Bookmark Topic Watch Topic
  • New Topic

Breaking out of frameset on logout  RSS feed

 
Mo Alexwainy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have 3 frames in a frameset.
The logout button is defined in the top frame.
While clicking on it the redirection only taking place in the top frame while other frames still display old data.
Any thoughts?
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you triggering a "redirection"?

In general if you want to replace the entire frameset, you refer to the "_top" frame from the  target attribute.

 
Mo Alexwainy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please give me an example?
 
Rob Spoor
Sheriff
Posts: 21117
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If you want to see a real-life example, go to http://docs.oracle.com/javase/8/docs/api/, then inspect the "NO FRAMES" link at the top.
 
Mo Alexwainy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a logout submit button that would close the three frames amd redirect to index.html
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66260
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would be remiss not to point out that frames and framesets (though not iframes) are obsolete and should not be used in new code. So I'd be refactoring not to use frames in the first place.

But if this is legacy code which you cannot refactor easily, you can simply style the link to look like a button.

Otherwise, you'll need to fall back on JavaScript to control the process.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!