Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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: 1844
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: 21421
94
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: 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
 
Author and ninkuma
Marshal
Posts: 66783
168
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!