I
Isaac Fig Newton
for use on Intranet, need to identify when user leaves the Intranet,
and have that trigger a function (on a new asp page) to use session
variables to do an update.
I have something that identifies when a user closes their browser,
but not when they simply leave the site for another site (complete
with testing alerts to verify each stage):
<script language="JavaScript" type="text/JavaScript">
<!--
function openAVWindow() {
// grab window position to determine if browser has been closed. grab
URL
var win = this;
{
var winpos = win.event.clientX;
alert("winpos = " + winpos);
var exiturl = document.location.href;
alert("exiturl = " + exiturl);
}
// if winpos is negative (browser was closed) open window to insert
exit
values into AuditView
if (winpos < 0)
{
window.open('/inc/UpdateAVUser.asp?AVID=<%=AVAuditViewID%>','AVUpdate','resi
zable=0,status=1,scrollbars=1,location=1,toolbar=1','width=10,height=10');
alert("popup = yes" + exiturl);
}
}
//-->
</script>
and have that trigger a function (on a new asp page) to use session
variables to do an update.
I have something that identifies when a user closes their browser,
but not when they simply leave the site for another site (complete
with testing alerts to verify each stage):
<script language="JavaScript" type="text/JavaScript">
<!--
function openAVWindow() {
// grab window position to determine if browser has been closed. grab
URL
var win = this;
{
var winpos = win.event.clientX;
alert("winpos = " + winpos);
var exiturl = document.location.href;
alert("exiturl = " + exiturl);
}
// if winpos is negative (browser was closed) open window to insert
exit
values into AuditView
if (winpos < 0)
{
window.open('/inc/UpdateAVUser.asp?AVID=<%=AVAuditViewID%>','AVUpdate','resi
zable=0,status=1,scrollbars=1,location=1,toolbar=1','width=10,height=10');
alert("popup = yes" + exiturl);
}
}
//-->
</script>