• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Breaking out of frameset on logout  RSS feed

 
Greenhorn
Posts: 24
  • 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?
 
Bartender
Posts: 1845
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: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please give me an example?
 
Sheriff
Posts: 21466
97
Chrome Eclipse IDE Java Spring Ubuntu VI Editor 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: 24
  • 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
 
Marshal
Posts: 67164
169
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!