Ajax功能在IE中不起作用

时间:2015-11-02 13:25:05

标签: javascript ajax

适用于chrome,opera,firefox,但不适用于IE浏览器,   有什么想法吗? 你可以在这里看到一个例子:

https://drive.google.com/folderview?id=0B08Mrlbnhv98a0dMUldSVmJLUlU&usp=sharing

<script type = "text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
 <script type = "text/javascript">
      {
        var Fname = document.getElementsByName('FirstName')[0];
        var Lname = document.getElementsByName('LastName')[0];

        $.ajax({
            url: "https://docs.google.com/forms/d/1hOViTOAdde6WgAdPFlobHzrNGhfZZ781Ba6EDC54kVs/formResponse",
            data: {
                "entry_2018163929":Fname.value,
                "entry_2125985135":Lname.value
            },
            type: "POST",
            dataType: "XML",
            statusCode: ""
        });
        clear();
    }
</script>

0 个答案:

没有答案