Jump to content

Making "Exit Application" work like Logout in iwp


This topic is 7001 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I am trying to get the Exit Application script to run like the Logout button on the status bar. When I click on the button attached with Exit Application it logs out just fine and it goes to the iwp_home.html page. I have a redirect in that page, which does work but the web adress in the address bar still displays the host computer for the FM db and not the redirected website.

The redirect works fine when I use the Logout button on the status bar. Is there anyway to make the Exit Application work exactly like the logout button?

I can't have students using the status bar because they dont't kow how to use it.

Thanks for the help.

Regards,

Nathan

Link to comment
Share on other sites

I think the problem is that even when the status area is hidden, the frame is still there. You need your redirect page to break you out of that frame. Here is my redirect page


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">

<html>

<head>

     <SCRIPT LANGUAGE="JavaScript">

<!--



if (window != top) top.location.href = location.href;



// -->

</SCRIPT>



    <meta name="generator" content="HTML Tidy for Mac OS X (vers 1st September 2004), see www.w3.org">

    <meta http-equiv="REFRESH" content="0; URL=http://www.chem.umn.edu/services/massspec/">

    <meta http-equiv="Window-target" content="_top">

    <title>Scheduling page has moved</title>

</head>

<body>

You will be redirected

</body>

</html>

  

The javascript will get you out of the status area frame and put the right address at the top of the page.

If security is a concern, you may want the page to direct users to quit their browser, since this is the only reliable way to clear the authentication from the browser cache.

HTH,

Dana

Link to comment
Share on other sites

  • Newbies

Hey Dana,

Thanks for help it works great. I greatly appreciate it. As a side note do you know of any way in iwp to make a button which invokes the print command in the web browser? I have setup a printer friendly layout but I have to instruct them to go to File -> Print.

Again thanks for all your help?

Nathan

Link to comment
Share on other sites

This topic is 7001 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.