DebugBar Forums
 
 HOME 
 DOWNLOAD 
 BUY 
 DOC / WIKI 
 FORUM 
 CONTACT 
Stay tuned : rss feed

Forum Home


advanced search

You are not logged in.

Announcement

Forums are now closed as we moved them to google groups. You can use the following Google Groups to discuss about DebugBar and IETester products:

#1 2012-07-20 17:34:54

revbones
New member

onbeforeunload/onunload not working (IE8)

Neither  onbeforeunload or onunload are firing for me in IETester using IE8 and the latest version.

Offline

 

#2 2012-07-20 17:37:01

revbones
New member

Re: onbeforeunload/onunload not working (IE8)

IE7 too

Offline

 

#3 2012-07-20 18:56:45

fabrice
DebugBar Support

Re: onbeforeunload/onunload not working (IE8)

Please... more info is welcome.

Offline

 

#4 2012-07-23 16:08:54

revbones
New member

Re: onbeforeunload/onunload not working (IE8)

I'm not sure what additional information I can provide.  If I create event handlers for onbeforeunload and onunload they don't fire in IETester. 

window.onbeforeunload = CheckExit;   
window.onunload=removeLocks;   
function CheckExit() {...}
function removeLocks(evt) {...}

They are called and do fire in IE7-9 when running on that browser itself, but do not fire when running in IETester.

Offline

 

#5 2012-07-23 16:13:19

revbones
New member

Re: onbeforeunload/onunload not working (IE8)

Also, when testing with IETester, the events do fire in IE6 and IE9.  In one I'm showing a message about leaving without saving and the other makes a call back to the server.  IE6 works (but duplicates the message) and IE9 works as expected.

Offline

 

#6 2012-07-23 18:41:26

fabrice
DebugBar Support

Re: onbeforeunload/onunload not working (IE8)

revbones wrote:

I'm not sure what additional information I can provide.

A good start is to read the big announcement at the top of any forum page.

Offline

 

#7 2012-09-18 13:48:06

daabraham270
New member

Re: onbeforeunload/onunload not working (IE8)

So I have been going crazy trying to figure out why the following is not firing off in IE 8 but working in the "big 3", Firefox, Chrome, and Safari

(From inside a Javascript function)

var popupWindow=window.open(document.location.href+kugiri+"popup_flg=1", 'mypopup','width=640,height=480');
  please get news about cheap oak beds



popupWindow.onbeforeunload = function() {
    changeVideoPlayback(true);
    if(someFalseVal)
        return "oy";
    else
        return ;
};

(Note most of this code was just a desperate attempt to get IE to work, I really only want the Lets get more knowledge about oak furniture

    changeVideoPlayback(true);

part to fire off. What am I doing wrong that makes IE just refuse to execute the onunload whenever the window closes?

I should also add that I have tried onunload as well, no dice.

Last edited by daabraham270 (2012-09-22 09:55:09)

Offline

 

#8 2012-09-18 18:02:09

fabrice
DebugBar Support

Re: onbeforeunload/onunload not working (IE8)

Can you give a sample url where I can test?

Can you also answer the Announcement questions?

Thanks.

Offline

 

#9 2012-11-17 07:21:36

sandy
New member

Re: onbeforeunload/onunload not working (IE8)

Neither  onbeforeunload or onunload are firing for me in IETester using IE8 and the latest version.

Offline