IE 6 hangs when an AJAX-enabled page is closed before requests complete

Last post 11-07-2009 3:00 PM by thfeldman67. 1 replies.

Sort Posts:

  • IE 6 hangs when an AJAX-enabled page is closed before requests complete

    11-05-2009, 7:40 PM
    • Member
      point Member
    • thfeldman67
    • Member since 11-05-2009, 7:15 PM
    • Posts 2

    We have an ASP.NET 2.0 application using ASP.NET 2.0 AJAX Extensions 1.0 that runs on IE 6 and opens new popup windows in the same instance.

    If a page is opened in one of those windows and the window is closed before any AJAX requests made from that page have returned from the server, any additional attempt to make any request to the server from any window running from that same IE 6 instance (from the original window or any other popup windows) just hangs with a blank white screen!

    (If I open a brand-new instance of IE 6, any URL that locked up using the problem IE 6 instance opens with no problems!)

    As there any way to prevent this behavior and stop IE 6 from locking up in this way when a page with AJAX requests in progress is closed "prematurely"?

    Is there something I can put into the JavaScript window.onunload event of the page to "clean-up" (even if a page is closed before AJAX requests return) and prevent other related windows in the same IE 6 instance from locking up?

    Any help or suggestions for solving this problem would be greatly appreciated!  Thanks in advance!

  • Re: IE 6 hangs when an AJAX-enabled page is closed before requests complete

    11-07-2009, 3:00 PM
    Answer
    • Member
      point Member
    • thfeldman67
    • Member since 11-05-2009, 7:15 PM
    • Posts 2

    I think I solved this problem.

    From the following two links, I figured out how to get access to ASP.NET AJAX executor objects in order to use them to abort any pending AJAX requests that have not returned before the IE window is unloaded:

    http://www.alexandre-gomes.com/?p=392

    http://siderite.blogspot.com/2008/02/how-to-abort-asynchronous-ajax-method.html

    My app is working now without hanging up IE 6 ...

Page 1 of 1 (2 items)