[mapguide-trac] #1539: Script error when closing IE window / tab
with the Quick Plot preview dialog open in Ajax viewer
MapGuide Open Source
trac_mapguide at osgeo.org
Fri Nov 26 00:26:09 EST 2010
#1539: Script error when closing IE window / tab with the Quick Plot preview
dialog open in Ajax viewer
-----------------------+----------------------------------------------------
Reporter: wuma | Owner: Mars Wu
Type: defect | Status: new
Priority: low | Milestone:
Component: General | Version: 2.2.0
Severity: trivial | Keywords:
External_id: 1367734 |
-----------------------+----------------------------------------------------
In Ajax Viewer, if we close the IE browser's window or tab while the Quick
Plot preview dialog is still open, there will be a script error.
It happens only in IE with compressed jxlib.js. The reason is,
quickplotpanel page has a unloade event handler which will close the
preview dialog. The event handler invokes the PreviewDialog.cancel() to
close the dialog. While cancel() just "fades out" the dialog to have a
good visual effect. In IE, the web page will be closed before the "fade
out" process finishes, then an error will occur.
The solution is: don't use "fade out" effect. Instead, just completely
remove the Jx.Dialog element from mapFrame. A method
PreviewDialog.dispose() is implemented to do this.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1539>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list