2011-11-24 36 views
0

我在jQuery菜單(燈絲組http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/)的同一頁面上使用JQuery UI組合框部件。JQuery UI組合框部件和jQuery菜單衝突

當我運行頁面我得到這個錯誤:

Unable to get value of the property 'zIndex': object is null or undefined

我相信這是這兩個插件之間的衝突。

是否有其他人得到相同的錯誤並解決了問題?

+0

不是一個答案,但衝突是有道理的;引擎蓋下的自動完成插件使用「菜單」小部件。這兩個衝突並不奇怪。 –

回答

0

我剛剛解決了這個問題。將插件中$.fn.menu的「菜單」更改爲另一個單詞。我將其更改爲$.fn.menux。然後方便地改變通話功能,如:

$('#flat').menux({ 
    content: $('#flat').next().html(), // grab content from this page 
    showSpeed: 400 
}); 

$('#hierarchy').menux({ 
    content: $('#hierarchy').next().html(), 
    crumbDefaultText: ' ' 
}); 

$('#hierarchybreadcrumb').menux({ 
    content: $('#hierarchybreadcrumb').next().html(), 
    backLink: false 
}); 

// or from an external source 
$.get('menuContent.html', function (data) { // grab content from another page 
    $('#flyout').menux({ content: data, flyOut: true }); 
});