2013-02-11 72 views
2

我試圖使用jQuery-UI對話框和uploadify創建文件上傳。我已經看到其他人也有類似的問題,但它始終是在CSS或跨瀏覽器問題的Z索引,這不是在這裏,因爲它不會在任何瀏覽器中工作。當我在jQuery對話框外部放置uploadify div(div是佔位符的flash對象)時,一切正常,但是當我嘗試將其放到裏面時,swf會加載,但當對話框彈出時,我會收到錯誤:jquery中的'Object expected'。在Uploadify與jQuery對話框衝突

var c=a.getAttributeNode("tabindex")

min.js難道問題是由jQuery的版本引起的?目前的版本是1.7.1,我嘗試使用也1.9.0

回答

0

添加以下CSS類來覆蓋默認z-index值1

.swfupload { 
    z-index: 10000 !important; 
} 
+0

這解決了這個問題 變化!:)謝謝非常! – stanke 2013-02-11 08:43:52

+0

實際上,我現在可以點擊'瀏覽'按鈕並選擇文件對話框出現,但IE瀏覽器仍然出現同樣的錯誤。任何想法? – stanke 2013-02-11 08:48:08

+1

是的,這是一個SWFUpload問題:http://code.google.com/p/swfupload/issues/detail?id=371&can=1&q=IE9&colspec=ID%20Type%20Status%20Summary%20FixReleasedIn%20FixTargetedFor%20Modified – sdespont 2013-02-11 09:02:01

0

這個錯誤在沒有功能getAttributeNode和中的getAttribute Flash元素。在 「jQuery的min.js」

elem.getAttributeNode(name) // OR a.getAttributeNode(b) 

(elem.getAttributeNode?elem.getAttributeNode(name):null) // OR (a.getAttributeNode?a.getAttributeNode(b):null) 

elem.getAttribute(name) // OR a.getAttribute(b) 

(elem.getAttribute?elem.getAttribute(name):null) // OR (a.getAttribute?a.getAttribute(b):null)