Question

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"

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top