-
15 Jul 2011 12:20 PM #1
Alert leaving page raising event twice in ie7/8
Alert leaving page raising event twice in ie7/8
Extjs v 4.0.2
IE 8
IE 7
Tested in IE9, FireFox 3.6,4.0,Safari,Chrome works fine.
The following line is causing multiple onwindowunloading.
function onWindowUnloading(e) {
e.browserEvent.returnValue = "Alert: Any unsaved work will be lost";
}
//This is the called in the app.
Ext.EventManager.on(window,'beforeunload',onWindowUnloading);
-
18 Jul 2011 7:55 AM #2
How about simply:
... making sure it's placed in a <head><script> tag block.Code:function onWindowUnloading(e) { return "Alert: Any unsaved work will be lost"; }"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
26 Jul 2011 8:20 AM #3
alert leaving page
alert leaving page
that doesn't work in firefox.
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote

