Ajax call freezes UI in internet explorer but work

2019-08-22 21:17发布

I'm making an AJAX call (JSP page in Savvion Business Manager) and I want to show the LOADING SPINNER while AJAX request is processed

It's working fine in Firefox, but in Internet Explorer the UI freezes until the response is received in callback success function. I'm guessing that Internet Explorer is not making Asynchronous Call. I'm receiving response in Callback success function but the loading spinner freezes when Ajax call is made.

Here is the code

function CallbackMyFunction(data)
{
        hideLoadingSpinner();

       // Some Code Here
       ...
}

.
.
.

function AjaxFunction()
{
   showLoadingSpinner();

   SetupAjax.myFunction(jQuery("#Var1").val(), jQuery("#Var2").val(), CallbackMyFunction);

   // Some Code Here
   ...
}

DWR is being used for SetupAjax.myFunction()

SetupAjax.myFunction() returns a "AJAXResponseDTO" object which implements "java.io.Serializable"

1条回答
女痞
2楼-- · 2019-08-22 21:37

I guess the setupAjax.myFunction is making an async AJAX call. Probably when accessed only from IE. It would be more clear if you post the definition of setupAjax.myFunction or the line in which the AJAX call is made exactly.

查看更多
登录 后发表回答