Got the onbeforeunload call to work. On the off chance that someone is doing
something similar here's my .tml head.
I'm using jQuery to do an ajax call with a onActionFromLink(String name)
method in my page to remove the user from my trusty singleton. Interesting
gotcha, ie 6 caches all ajax calls by default hence the cache: false. This
works in firefox 3 and ie 6.
<head>
<title>chatroom Start Page</title>
<script type="text/javascript" src="js/jquery-1.2.6.js"></script>
<script type="text/javascript" language="JavaScript">
var userName = '${currentUserName}';
<!-- //
$(document).ready(function(){
window.onbeforeunload = removeUser
});
function removeUser(){
$.ajax({
type: "GET",
url: "chatroom.link/" +
userName,
cache: false
});
}
// -->
</script>
</head>
--
View this message in context:
http://www.nabble.com/T5---Catching-user-leaving-a-page-tp20093965p20129875.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]