Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 21 Feb 2007 10:03:39 +0100,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


Internet Explorer 7 + Detect Browser Closing problem   
Hi All,

my web application use a trick to detect when the browser is been closing from the "X" button. 
"onunload" event is handled by a function:

function CleanUpSession() {
    if (window.event.clientX < 0) {
        // do cleanup
    }
}

This works well with IE6. Unfortunatly, the IE7 browser return always positive clientX value even if the mouse is out of client area.
This means that the trick doesn't work in IE7.

How can I solve this???

Thanks, Gianluca
date: Wed, 21 Feb 2007 10:03:39 +0100   author:   Gianluca Maggio

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us