p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: updating a database value on closing the browser window.


Message #1 by "aditya" <baladitya_g@r...> on Thu, 24 May 2001 11:04:24 +0530
> we achieved this task for the exit button but i want a method when the 
> user closes the window anywhere in the middle in any screen.

	Unfortunately you really can't gurantee control over this.  The only way I
can think of is using JavaScript in the onClose event of the window (should
work in the BODY tag) to open a URL in a new window that tells your system
they are exiting the system.  This window could display a goodbye message.

? Chuck

> -----Original Message-----
> From: aditya [mailto:baladitya_g@r...]
> Sent: Thursday, May 24, 2001 1:34 AM
> To: Code Clinic
> Subject: [proasp_codeclinic] updating a database value on closing the
> browser window.
>
>
> hello guys
>              if you can please help me out.
> the problem is, we are working on a website wherein as soon as a user 
> comesin his session starts updating a database cloumn value from 0 to 1.
> i must change this value from 1 to 0 as soon as a user comes out of the 
> application in any manner viz., by closing the browser window or by 
> using the exit button provided by us.
> we achieved this task for the exit button but i want a method when the 
> user closes the window anywhere in the middle in any screen.
>
> thanking you
> aditya
>
>

  Return to Index