How to close a window with Logoff facility

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
szms
Forum Contributor
Posts: 101
Joined: Thu Jun 26, 2003 12:23 pm

How to close a window with Logoff facility

Post by szms »

Hi I am trying to close my existing window and before closing it will will show a new mini window where It will be written, press ok if you want to log off. else cancel. And I want to make sure that it really logged of from the server no matter how many other same window is open. By the way I am using unix login system in my web page.

Could you please help me to get this interface. Thank you.
seiretto
Forum Newbie
Posts: 12
Joined: Thu Jul 17, 2003 9:26 am
Location: UK

POP-ups should now be avoided....

Post by seiretto »

Avoid pop-up windows, why? As surfers are now suppressing pop-ups, this feature is now integrated into the google toolbar, and many ISPs are adding this as a new feature.

So how do you do it? Using frames, both hidden and visible to give your members feedback.

You can post to a frame like this:
<form ACTION="yourcode.php" METHOD="POST" NAME="yourform" target="hidden_frame_name">

Both target and action can be changed dynamically client side using JavaScipt like this:

document.yourform.target="user_feedback_frame";
document.yourform.action="other.php";

Hope that helps...

Dave Walker
http://www.seiretto.com
Post Reply