2011-07-04 40 views
0

我有一个页面,它使用MS Ajax从服务器上的Web服务提取内容。这在大多数机器上运行良好,但在特定机器上的IE8中不起作用。我禁用了这些机器上的所有插件以及来自网络的其他一些建议,但没有任何效果。tagName错误只在IE8上某些

我得到的“变量名不是对象”上线73.当我打开脚本调试运行,我得到的错误在下面的代码:

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; 

的错误是在最后终于线。

回答

0

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