This content has been marked as final.
Show 2 replies
-
1. Re: call method on unload body
ronanker Mar 25, 2008 5:13 AM (in response to cremersstijn)you can try something like :
...
<a4j:jsFunction name="myunload" action="..." />
...
but it's more complicated to detect if the user is closing the browser or going to another site...
for exemple :
test=true;
good luck... -
2. Re: call method on unload body
ronanker Mar 25, 2008 5:14 AM (in response to cremersstijn)(sorry i forgot the "code" tag...)
you can try something like :<body onunload="myunload();"> ... <a4j:jsFunction name="myunload" action="..." /> ... </body>
but it's more complicated to detect if the user is closing the browser or going to another site...
for exemple :<script>test=true;</script> <body onbeforeunload="if (test) myunload();"> <form onsubmit="test=false;">
good luck...