Ajax调用冻结了Internet Explorer中的UI,但在firefox中工作正常 [英] Ajax call freezes UI in internet explorer but works fine in firefox
问题描述
我正在进行AJAX调用(Savvion Business Manager中的JSP页面)
我希望在处理AJAX请求时显示LOADING SPINNER
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
它在Firefox中运行良好,但在Internet Explorer中,UI冻结,直到在回调成功函数中收到响应。我猜测Internet Explorer没有进行异步调用。我在回调成功函数中收到响应,但加载微调器在进行Ajax调用时冻结。
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.
这是代码
function CallbackMyFunction(data)
{
hideLoadingSpinner();
// Some Code Here
...
}
.
.
.
function AjaxFunction()
{
showLoadingSpinner();
SetupAjax.myFunction(jQuery("#Var1").val(), jQuery("#Var2").val(), CallbackMyFunction);
// Some Code Here
...
}
DWR用于SetupAjax.myFunction()
DWR is being used for SetupAjax.myFunction()
SetupAjax.myFunction()返回一个AJAXResponseDTO对象,它实现了java.io.Serializable
SetupAjax.myFunction() returns a "AJAXResponseDTO" object which implements "java.io.Serializable"
推荐答案
我想 setupAjax.myFunction
正在进行异步AJAX调用。可能只在IE上访问时。如果您发布 setupAjax.myFunction
的定义或完全进行AJAX调用的行,那就更清楚了。
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.
这篇关于Ajax调用冻结了Internet Explorer中的UI,但在firefox中工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!