[Javascript] Grab close window call

Alan Easton alaneaston666 at hotmail.com
Tue Apr 1 08:06:35 CDT 2008


Thanks Tedd,
 
So what you are saying is get rid of the check, and just do a ajax call straigha way, so something like:
 
-------------------------
 
<script language="javascript">
window.onbeforeunload=confirmExit;
function confirmExit(){
//just run ajax call straight away here
}
</script>
 
-------------------------
 
Is that what you reckon?
 
Alan...
 
> Date: Tue, 1 Apr 2008 08:58:52 -0400> To: javascript at lists.evolt.org> From: tedd at sperling.com> Subject: Re: [Javascript] Grab close window call> > At 12:30 PM +0100 4/1/08, Alan Easton wrote:> >> >Any ideas would be great.> > > My advice:> > 1. Don't annoy the user with "Do you want to close this?" -- s/he > already made their choice.> 2. Do "End of Session" via the "End of Session" link and window.onbeforeunload.> 3. Do a periodic time check in your dB for unclosed sessions and set > them accordingly.> > Cheers,> > tedd> -- > -------> http://sperling.com http://ancientstones.com http://earthstones.com> _______________________________________________> Javascript mailing list> Javascript at lists.evolt.org> http://lists.evolt.org/mailman/listinfo/javascript
_________________________________________________________________
The next generation of Windows Live is here
http://www.windowslive.co.uk/get-live
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20080401/a38b473d/attachment.htm>


More information about the Javascript mailing list