Communication failure error in non-IE browser

  1. #1

    Communication failure error in non-IE browser

    I've experienced this issue when working with non-IE browsers.
    My application needs to save the state of the page, so I register my logic in "WindowUnload" even. Literally, all I do is to make a call to the server side:
    Ext.net.DirectMethods.MyCleanUpDirectMethod()
    This code works perfectly fine in IE, but for Firefox and Chrome, it immediately throw an "Communication Error". I have an impression that the browser doesn't even try to communicate to server. When I try to resend the request using Firebug, it works as expected.
    I tried to Google around and ended up to this thread EXT.Net "communication failure" window popping up in non-IE browsers
    The symptom is alike and I hopefully think that they have the same root cause. But how can I set the time-out for DirectMethod programatically in JavaScript code?
  2. #2
    Hi,

    WindowUnload means that a page is destroyed.

    IE:

    A browser makes a DirectMethod request, then a page is getting a response from server. Then a page is destroyed.

    FireFox, Chrome:

    A browser makes a DirectMethod request and a page is destroyed. Then a page is destroyed and nobody can't take a response - a communication error.

    The difference in the behaviors might be due to the possibility that IE slowly unloads/destroys a page.

    Anyways, I think your scenario can be broken in IE as well.

    So, DirectMethods cannot be used within WindowUnload.
  3. #3
    Thank you for the answer. In this case, can you suggest a solution to hook up the cleanup event? Can we ignore the response somehow? I only need to perform the call to save the config to database, no need for any response
  4. #4
    I would try to make a synchronized AJAX request. Please investigate the following threads:
    http://stackoverflow.com/questions/3...e-ajax-request
    http://stackoverflow.com/questions/2...-event-handler
    Last edited by Daniil; Apr 28, 2012 at 7:11 AM.

Similar Threads

  1. Replies: 2
    Last Post: Apr 05, 2012, 4:55 AM
  2. TaskManager (Error: Communication Failure)
    By aelen in forum 1.x Help
    Replies: 3
    Last Post: Jan 02, 2012, 8:27 AM
  3. Replies: 16
    Last Post: Oct 04, 2011, 5:17 PM
  4. grid.save() communication failure in Fire Fox
    By kumarxlnt in forum 1.x Help
    Replies: 1
    Last Post: Oct 05, 2009, 4:14 AM
  5. [CLOSED] communication failure error
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 30, 2009, 11:11 AM

Tags for this Thread

Posting Permissions