Ajax request problem: error 80020101

前端 未结 14 2091
[愿得一人]
[愿得一人] 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条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 14:05

    I also ran into this issue, but after taking a close look at my script file, I found out that I made a small mistake that run smoothly on other browser but IE pick it and show me the error:

    My previous code was:

    var autocomplete = new google.maps.places.Autocomplete(searchTextField ,options);
    

    After analyzing, I got that searchTextField is id and I have to get its value before using it

    So I change it to:

    var input = document.getElementById('searchTextField');
    var autocomplete = new google.maps.places.Autocomplete(input,options);
    

    and it works fine.

    That's really cool that IE detects it, but Microsoft may enhance the browser to show specific error for specific cause, because it's very frustrating if same code works in other browsers

提交回复
热议问题