html - 由于错误 c00ce56e 在所有 IE 版本中无法完成操作

标签 html ajax

我已经使用 ajax 功能进行分页。此功能在其他浏览器(FF、CHROME)中工作正常,接受 IE 浏览器。我收到以下行的错误,作为此行的错误。

提前致谢

if (req) {
  var th = this;
  req.onreadystatechange = function() {
    var s = req.readyState;
    if (s == 4) {
      // Avoid memory leak by removing closure.
      req.onreadystatechange = th.dummy;
      // Remove possible junk from response.
      var responseText = req.responseText;//Error on this line
      try {
        // Call associated dataReady().
        eval(responseText);
      } catch (e) {
        Subsys_JsHttpRequest_Js.dataReady(id, "JavaScript code generated by backend is invalid!\n"+responseText, null);
      }
    } else {
      th.readyState = s;
      if (th.onreadystatechange) th.onreadystatechange()
    }
  };

  this._id = id;
}

最佳答案

根据 Microsoft's description of the error message与编码有关,在服务器端的 AJAX 输出上设置适当的编码。

关于html - 由于错误 c00ce56e 在所有 IE 版本中无法完成操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14000509/

相关文章:

javascript - 更新页面内容 cURL 和 ajax,无需刷新页面

javascript - 等待 Canvas 动画并获取完成

ajax - 压缩 JSF 2.0 Ajax 请求?

javascript - Vue.js 选择特定值

html - 如何将 SVG 中的链接编写为 URL 相对而不是 web 服务器根(文件系统)相对?

html - 为输入框和按钮添加发光效果

java - struts2:在主/调用jsp中显示结果jsp

java - Jsoup 将双引号解析为 &quot,将单引号解析为双引号

jquery - jquery 中裁剪\缩放工具的几何计算

jQuery.ajax() 获取 CSS 文件的字符串化版本会抛出 CORS 错误?