Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid.exportData and window unload

    Is there any way to prevent a call to ListGrid.exportData from causing a window.unload event? I see this with IE9 and FireFox 3.6 and detecting it via:
    Code:
    <script type="text/javascript">
            window.onbeforeunload = hullo;
            function hullo() {
                    var url = window.location.href;
                    window.alert(url);
            }
    </script>
    Which is on the same html page as my Smart GWT application is. (I'm also seeing this when I open up the Developer Console too). The reason I'm asking is I have a use case in which I need to detect if my application's web page is unloaded and was hoping to do so via window.onbeforeunload. But, maybe there is a better way?

    This is with SC_SNAPSHOT-2011-05-17/PowerEdition. Thanks.

    #2
    Unfortunately, no, not that we've found. We use a pattern of setting a flag to ignore the next unload event when we know we're going to cause one.

    Comment

    Working...
    X