Ajax 请求问题:错误 80020101 [英] Ajax request problem: error 80020101
问题描述
我有一个返回一个jsp页面的请求.但事实是,jsp中包含了jsp:include(它调用了另一个jsp文件)并且ie给出了错误80020101.
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.
有什么想法吗?
谢谢
推荐答案
删除使用 src-attribute 导入脚本的 javascript 声明.如果您确实需要,请将您的 javascript 文件更改为 inline-javascript.
Remove javascript declarations that imports a script using src-attribute. Change your javascript-file to inline-javascript if you really need it there.
来源: http://bytes.com/topic/javascript/answers/750333-ie-syntax-error-80020101-undefined-array
最简单的方法是向您的 AJAX 请求添加一个参数,例如 ajax=1,并在请求中存在 ajax 参数时隐藏 javascript 声明.
Easiest way to would be to to add a parameter to your AJAX request such as ajax=1 and hide the javascript declarations when ajax -parameter exists is in request.
我认为这与使用 jsp:include 包含文件没有任何关系,因为浏览器不知道除了您抛出的 HTML 之外的任何其他内容.
I don't think this has anything to do with including files with jsp:include since the browser does not know aynthing else than the HTML you throw it with.
这篇关于Ajax 请求问题:错误 80020101的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!