Window Close Button
-
Hi all, i am stuck on a huge problem, i want to either hide, disable or be able to capture the event of the close button on a window. Is there a way i can do this? Thanks in advance!
living life on the flip side
you cannot capture browser close event...
umerumerumer
-
you cannot capture browser close event...
umerumerumer
-
Hi all, i am stuck on a huge problem, i want to either hide, disable or be able to capture the event of the close button on a window. Is there a way i can do this? Thanks in advance!
living life on the flip side
-
Hi all, i am stuck on a huge problem, i want to either hide, disable or be able to capture the event of the close button on a window. Is there a way i can do this? Thanks in advance!
living life on the flip side
-
Agweet wrote:
i want to either hide, disable or be able to capture the event of the close button on a window.
There is no way for you to hide/disable the close button, as this poses security risks. Why would you want to do that anyway? Regards, --Perspx
what i am doing is creating a application where a certain user can only login with a specific username once at a time...so if a user logs in with administrator then some 1 else cant use that username, now the reason i want to disable the close button is that if a user pushes the close button then they need to get logged out in the database...hence i want to force them to use my logout button so i can execute the function to log them out...if that makes sense...please ask me any more questions if there is something you dont understand.
living life on the flip side
-
what i am doing is creating a application where a certain user can only login with a specific username once at a time...so if a user logs in with administrator then some 1 else cant use that username, now the reason i want to disable the close button is that if a user pushes the close button then they need to get logged out in the database...hence i want to force them to use my logout button so i can execute the function to log them out...if that makes sense...please ask me any more questions if there is something you dont understand.
living life on the flip side
-
Hi, can u please elaborate for me on how i could use a session to log a user out?
living life on the flip side
What you want, is impossible. You *can* handle the unload event and send a message with AJAX to your server, but you still cannot guarantee that it will always be sent. Your best bet is to use the session and use a timeout, so that if someone doesn't log out, they have to wait until the timeout period to be able to log back in.
Christian Graus Driven to the arms of OSX by Vista.
-
What you want, is impossible. You *can* handle the unload event and send a message with AJAX to your server, but you still cannot guarantee that it will always be sent. Your best bet is to use the session and use a timeout, so that if someone doesn't log out, they have to wait until the timeout period to be able to log back in.
Christian Graus Driven to the arms of OSX by Vista.