2012-06-07 94 views
1

我的網站www.theprinterdepo.com它的一個magento oscommerce網站 如您所知,它的開源,我沒有開發它。無法獲取屬性「get」的值:對象爲null或未定義

它加載在Chrome和Firefox完美,但我在Internet Explorer中收到此JavaScript錯誤9.

無法獲得屬性「得到」的值:對象爲空或未定義

我試着調試和發現的問題是它的prototype.js

prototype.js中,線516字符1

在那裏其失敗的行:

var respondersForEvent=registry.get(eventName);if(Object.isUndefined(respondersForEvent)){respondersForEvent=[];registry.set(eventName,respondersForEvent);} 
if(respondersForEvent.pluck('handler').include(ha 

顯然,因爲這是一個圖書館,我不想修改它我的自我。

我正在尋找建議,根據您的經驗在這種情況下做什麼?

+1

http://stackoverflow.com/questions/5787245/ie9-javascript-error-script5007-unable-to-get-value-of-the-property-ui-obje – Andreas

+0

我有這個:

回答

1

有許多與Magento的和IE9不幸的是已知問題,一個公認的解決問題的辦法的問題是使用元標籤,如:

<meta http-equiv="X-UA-Compatible" content="IE=8" /> 

標題標籤後立即放置。有關更多詳細信息,請參見this blog post

+1

謝謝,至少我沒有js異常了。我的網站在IE 9中仍然看起來很醜。 –

相關問題