Re: [PHP] detect user click stop button in browser

2006-06-23 Thread Ahmed Saad
On 23/06/06, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, June 22, 2006 4:16 am, weetat wrote: An javascript thingie for onStop if it exists might help. window.onunload /ahmed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] detect user click stop button in browser

2006-06-22 Thread weetat
Hi all, Can we detected if user have clicked the X button in browser or close browser ? I have tested in my php program ,when i click X in IE6 , the execution did not stop , it still running . Any ways to stop the program execution when user click the X button or close browser ? Thanks

Re: [PHP] detect user click stop button in browser

2006-06-22 Thread Andrei
Check int connection_aborted ( ) in the PHP manual Andy weetat wrote: Hi all, Can we detected if user have clicked the X button in browser or close browser ? I have tested in my php program ,when i click X in IE6 , the execution did not stop , it still running . Any

Re: [PHP] detect user click stop button in browser

2006-06-22 Thread Richard Lynch
On Thu, June 22, 2006 4:16 am, weetat wrote: Can we detected if user have clicked the X button in browser or close browser ? I have tested in my php program ,when i click X in IE6 , the execution did not stop , it still running . Any ways to stop the program execution when user click

Re: [PHP] detect user click stop button in browser

2006-06-22 Thread weetat
Hi Andrei, I have tried the connection_aborted() in my code , however it not working at all , below is my code: If i close the browser window(IE) , the script still running and call the difference() function as shown below: Any ideas what is happening ? Thanks ignore_user_abort(true);

Re: [PHP] detect user click stop button in browser

2006-06-22 Thread Richard Lynch
On Thu, June 22, 2006 9:48 pm, weetat wrote: I have tried the connection_aborted() in my code , however it not working at all , below is my code: If i close the browser window(IE) , the script still running and call the difference() function as shown below: Any ideas what is happening ?