开发者

IE is not firing ajax call in jquery

开发者 https://www.devze.com 2022-12-24 02:56 出处:网络
I have this code that it is working on firefox and chrome, but in IE8/IE7 it\'s not working. The server is not been reached ever.

I have this code that it is working on firefox and chrome, but in IE8/IE7 it's not working. The server is not been reached ever.

$(开发者_运维问答"#adicionarItem").click(function(){
    $.ajax({
        type: 'GET',
        url: $("#formAdicionaItem").attr("action"),
        data: $("#formAdicionaItem").serialize(),
        success: function(result){
            //do something
        }
    });
});

Does anyone has any idea what is wrong?

Thanks


Is there any change if you set

cache: false,

I know IE has a habit of caching GET requests.

0

精彩评论

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