Forum Moderators: open

Message Too Old, No Replies

Writing event to raw logs?

         

jbgilbert

10:41 pm on May 8, 2006 (gmt 0)

10+ Year Member



The following writes an entry into raw logs, which is fine and what I want, BUT I don't want it to stop the user from navigating to the location he asked for.

In other words, i need to write a raw log entry on event "unload", but i don't want it to effect what ever the user is doing or seeing on unload?

<html>
<head>
<script type="text/javascript">
function leftpage()
{
document.write('<img width="1" height="1" src="/unload.gif">\n');
}
</script>
</head>
<body onunload="leftpage()">

MichaelBluejay

8:44 am on May 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There's probably a more elegant way to do this, but one solution is to have the unload redirect to a page that makes the request for the image file, and then redirects again to where the user wanted to go.