开发者

jquery ajax loading image not displayed in IE

开发者 https://www.devze.com 2023-03-19 01:34 出处:网络
I have a page with links on the left and data on the right side. Now when I click on the link I use jquery ajax call to load the data.

I have a page with links on the left and data on the right side. Now when I click on the link I use jquery ajax call to load the data.

So, when I click on a link I use loading image while fetching the data.

code,

$("#linkData").empty().html("<div style='text-align:center;height:400px;margin-top: 200px;'><img src='loading.gif' /></div>");
$.ajax({
    type: "post",
    url: urlLink,
    async: false,
    data: appliedData,
    cache: false,
    success: function(response) {
        $("#linkData").html(response);
    }
});

Now, This is working great in Firefox but in IE versions开发者_开发知识库 simply the data is getting replaced after success with the previous data.

In IE it looks like very sticky, please help with some suggestions.

Thanks in advance


So, do you mean that in the #linkData, you get to see the loading image again in IE?

Have you tried setting async to true?

0

精彩评论

暂无评论...
验证码 换一张
取 消