Ajax call freezes UI in internet explorer but works fine in firefox

匆匆过客 提交于 2019-12-12 06:26:40

问题


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:


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.



来源:https://stackoverflow.com/questions/12197051/ajax-call-freezes-ui-in-internet-explorer-but-works-fine-in-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!