2011-10-01 50 views
0

我正在嘗試將AjaxUploader整合到我的網站中,但只在Opera瀏覽器中有錯誤,在其他瀏覽器中它分支不錯 此外,如果我在新的測試服務器上測試此代碼, Opera瀏覽器。Opera中的AjaxUploader錯誤

我不明白髮生了什麼,請幫助我。

這裏距離Opera調試器stacktraca:

Uncaught exception: ReferenceError: Security error: attempted to read protected variable 

Error thrown at line 2216, column 2 in <anonymous function: Sizzle>(query, context, extra, seed) in http://site/assets/js/jquery1.6.js: 
    if (!seed && context.nodeType === 9 && !isXML(context)) 
called from line 292, column 3 in <anonymous function: find>(selector) in http://site/assets/js/jquery1.6.js: 
    jQuery.find(selector, this[0], ret); 
called from line 230, column 4 in <anonymous function: submit>() in http://site/assets/js/ajaxupload.js: 
    var response = iframe.contents().find('body').html(); 
called from line 2693, column 4 in <anonymous function: handle>(event) in http://site/assets/js/jquery1.6.js: 
    var ret = handler.apply(this, arguments); 
called via Function.prototype.apply() from line 2467, column 4 in <anonymous function: add>() in http://site/assets/js/jquery1.6.js: 
    return typeof jQuery !== "undefined" && !jQuery.event.triggered ? 

回答

1

看起來像內置的跨站點腳本攻擊防範。以某種形式或另一種形式(您使用iFrames?),您試圖以瀏覽器不允許的方式從另一個站點訪問某個站點上的資源。