0

我有一个页面,它使用 MS Ajax 从服务器上的 Web 服务中提取内容。这适用于大多数机器,但不适用于特定机器上的 IE8。我已经禁用了这些机器上的所有插件以及来自网络的其他一些建议,但没有任何效果。

我在第 73 行得到“tagName is not an object”。当我打开脚本调试时,出现以下代码中的错误:

Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor() {
/// <summary locid="M:J#Sys.Net.XMLHttpExecutor.#ctor" />
if (arguments.length !== 0) throw Error.parameterCount();
Sys.Net.XMLHttpExecutor.initializeBase(this);
var _this = this;
this._xmlHttpRequest = null;
this._webRequest = null;
this._responseAvailable = false;
this._timedOut = false;
this._timer = null;
this._aborted = false;
this._started = false;
this._onReadyStateChange = (function () {

    if (_this._xmlHttpRequest.readyState === 4 ) {
        try {
            if (typeof(_this._xmlHttpRequest.status) === "undefined") {
                return;
            }
        }
        catch(ex) {
            return;
        }

        _this._clearTimer();
        _this._responseAvailable = true;
        try {
            _this._webRequest.completed(Sys.EventArgs.Empty);
        }
        finally {
            if (_this._xmlHttpRequest != null) {
                _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
                _this._xmlHttpRequest = null;

错误在最后一行。

4

1 回答 1

0

这是 jQuery v1.3.2 和 IE8 的错误。升级到 v1.4.0 解决了这个问题。

于 2011-07-05T09:36:58.523 回答