开发者

IE is not firing ajax call in jquery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜