• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

come out of the frame set

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a frame set with two frames. One is like MenuFrame and the other is ShowFrame. In the MenuFrame i have all links and when i click those links the page is displayed in ShowFrame. Till here it is ok and am able to work with.

But in MenuFrame i have Logout link and when i click that link i should come out of the Frame Set and display Login Page and both MenuFrame and ShowFrame disappear,Can any one suggest how to do that.


I am doing some thing like this:

<html>
<frameset cols="170,*">
<frame src="try.jsp" name="tryframe">
<frame src="Default.jsp" name="showframe">
</frameset>
</html>

In try.jsp i have all my links including Logout Link. when i am clicking that link login page is displayed in 1st/2nd frame depending on target i give.but i dont want any frames and go to next login page.

Any help regarding this would be great.
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Search for "target" attribute in the anchor (a) tag. It takes values like
_parent
_self
_top
I believe value "_parent" or "_top" should meet your requirement.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your tryframe, call a javascript function when clicking on the logout link and set the top location to the logout url :



PS :
After reading Purushothaman's post, I guess this is a poor solution
Sorry for my lack of knowledge. I leave the post just in case.
[ August 31, 2006: Message edited by: Satou kurinosuke ]
 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Satou that of was great help
 
His brain is the size of a cherry pit! About the size of this ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic