Solved

Logout Logic ???

Posted on 2004-09-21
8
359 Views
Last Modified: 2010-04-01
Hi

I have a Frame based application, In this frame (Left page  & Right page), all pages displays in the right page has LOGOUT button, when I click I'm ending the session and saying Thanks U message. Now the problem is when I click logout button, it is ending the session and Thank U message is shoing up in the right page itself. But I can still view Left page (menus). Ofcourse when I click on menus in left page, its not working bcoz of session end. But what I want is when U logout, whole frame should dissappeare and single page of Thank U message should come.

Regards,
H

0
Comment
Question by:princehyderabad
  • 5
  • 3
8 Comments
 
LVL 33

Expert Comment

by:sajuks
ID: 12120069
try putting this after your alert
 parent.top.location=index.html // your initial page
0
 

Author Comment

by:princehyderabad
ID: 12120075
you mean as Javascript ?? can u explain in detail please.
Is this index.html is like thank U page you mean.
0
 
LVL 33

Accepted Solution

by:
sajuks earned 50 total points
ID: 12120101
I assume when you login you go to a page called as index.html. This index.html is a frameset consisting of left and right frames. left to show menu and right to show the screens.
I assume that you have some sort of image or button on the menu which says logoff.
This can be either an html page or jsp page,
Assuming you have a button you an code it like
<input type ="button" onclick = "parent.top.location='index.html'" value="Logoff">

Your index.html page can be your startup page/thankyou page
0
 

Author Comment

by:princehyderabad
ID: 12120127
Thanks, Sajuks !!
Any idea in the frames how to show the pages links. As U know in the frames when u navigate thru pages it does'nt show the page names that on the address bar it is the static name. Any idea how to display page names as U navigate thru the pages ....

Thx,
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 33

Expert Comment

by:sajuks
ID: 12120147
Using frames it wont be possible to show the actual page name ( i assume you mean the address bar ).But why would you want to do that i.e show the actual address ?
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12120155
Thanks for the points and grade
0
 

Author Comment

by:princehyderabad
ID: 12120159
U r welcome, well actualy I was told to show the actual address so thats why asking is there any way ?
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12120199
On the address bar, dont think so.
If you want to dispaly it on the page you can use this
<SCRIPT LANGUAGE="JavaScript"><!--
document.write('The Actual URL of thie document is '+location.href+'.<BR>')
//-->
</SCRIPT>
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
logging jar 1 105
java.util.concurrent.locks in java 3 178
TreeSet comparator example 7 87
Suggestion on WebSite Template Sites 6 58
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now