2011-07-04 66 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解決了這個問題。