-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Prasanna_kakanoor
Message 1 in Discussion

Hi All,

I want to trap the event of the Window close of the Browser using Java
Script so that I can call the function on that event.

I am writing a Client Server application using Java Script and Java
Servlets. I am giving client a database connection when the user
correctly logins to the server, that connection is returned to the
connection pool
when the user logs out using the Logout link.

The problem is when the user closes the browser window (using X) without
logging out. I don't know how to trap the window close event of the
browser so that I can write the function to return that users connection
back to the pool. I have tried using onunload event but it is also fired
when the next page is called. I don't know how to go about for the
solution. 

Any suggestions will be appreciated.

Thanks

Thanks & Regards,
Prasanna 


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to