S
Salvatore Sanfilippo
Hello,
I need to notify the server that the user closed a window.
In order to do so I tried to use the onbeforeunload event
to create an image object having as url the GET request
I need to perform to hint a PHP file server-side.
With firefox this is not working, I guess the page is flushed
away before the browser can load the image.
Is there some alternative solution not involving popups
or other nasty tricks?
Thanks in advance
Regards,
Salvatore
p.s. syncronous ajax is not an option since the server
is in a different domani.
I need to notify the server that the user closed a window.
In order to do so I tried to use the onbeforeunload event
to create an image object having as url the GET request
I need to perform to hint a PHP file server-side.
With firefox this is not working, I guess the page is flushed
away before the browser can load the image.
Is there some alternative solution not involving popups
or other nasty tricks?
Thanks in advance
Regards,
Salvatore
p.s. syncronous ajax is not an option since the server
is in a different domani.