【问题标题】:Jquery Ajax or Get doesn't work on SOME IEJquery Ajax 或 Get 在某些 IE 上不起作用
【发布时间】:2009-11-11 14:07:22
【问题描述】:
<script type="text/javascript">
        $(document).ready(function(){

            function listadepoimentos(page){
                //  $.get("ajaxes.php", {act:'listadepoimentos', page:page}, function a(b){$('#holder').html(b)}, "text");
                $.ajax({
                    type: 'GET',
                    url: 'ajaxes.php',
                    data: {act:'listadepoimentos', page:page},
                    success: function(data){
                            //alert(data);
                            $('#holder').html(data);
                    },
                    error: function(xhr, type, exception){
                            alert("Error: " + type);
                    }
                });
            }

            listadepoimentos(0);

        });


    </script>

它在所有浏览器上都可以正常工作,但某些 ie8 除外。是的,一些。我试过各种 ie8 浏览器,有的可以,有的不行。

有合理的答案吗?

【问题讨论】:

  • 在 IE 上使用 AJAX GET 时,应始终指定 cache: false。无论哪种方式,什么工作不正常?您遇到错误了吗?

标签: jquery ajax internet-explorer get


【解决方案1】:

好吧,好吧……经过将近 3 周的恐惧,我们终于找到了解决方案。我们被窃听的用户将他们的 ie8 偏好设置为默认值。而且... voi'a'la 它简单的开始工作!!!!!!!!!!!!!不要问我为什么,或者哪个设置是这个错误的责任。

我在整个网站上都使用了 $.get。所以 $.ajax 解决方案即将被放弃。重置 ie8 默认值使 $.get 开始正常工作。

【讨论】:

    猜你喜欢
    • 2014-09-27
    • 2012-10-19
    • 1970-01-01
    • 1970-01-01
    • 2014-12-19
    • 2011-03-26
    • 2016-09-21
    • 1970-01-01
    • 2012-06-07
    相关资源
    最近更新 更多