Ajax request problem: error 80020101

前端 未结 14 1994
[愿得一人]
[愿得一人] 2020-11-30 13:47

I have a request which returns a jsp page. But the fact is, the jsp includes jsp:include in it(it calls another jsp file in it) and ie gives the error 80020101.

Any

相关标签:
14条回答
  • In my case I found that there was an HTML comment in my JS code as:

    <script type="text/javascript">
    <!-- Unexpected Comment -->
    //code...
    </script>
    

    I replaced <!-- --> with /* */ and it worked. Hope it will help someone.

    0 讨论(0)
  • 2020-11-30 14:17

    I have now come across this problem with jQuery (even the latest version) twice. The ONLY solution is to copy and paste all of your javascript into one big file and run it through JSLint (jsfiddle.net, preferred). It was able to point out several minor errors (including an extra comma in one of my data callback structures) that I was able to fix and then re-copy and paste back into their original places to eliminate the issue.

    http://jsfiddle.net/devlshone/QKxup/3/

    0 讨论(0)
  • My issues were caused by:

    var a = b = c = true;
    

    turned to

    var a = true;
    var b = true;
    var c = true;
    

    Now it works fine!

    Bye MA

    0 讨论(0)
  • 2020-11-30 14:18

    I had the same error, but in my case there was a reserved word 'class'. Here is a snippet of code to make this clear:

    function foo(ajaxResponse){
      $(elem).attr('class', ajaxResponse.class);
    }
    

    I rewrote this as:

    $(elem).attr('class', ajaxResponse['class']);
    

    Hope this was helpful.

    0 讨论(0)
  • 2020-11-30 14:19

    I experienced this error when using jQuery 1.10.2 and was loading a file that didn't exist.

    So make sure the file you try to load is correct, otherwise IE8 can throw the 80020101 error.

    0 讨论(0)
  • 2020-11-30 14:25

    Are you by any chance including a js file ?

    Because

    Error 80020101 means that IE isnt't able to compile your script.

    0 讨论(0)
提交回复
热议问题