English 中文(简体)
2. 火灾失常: 植被不是功能
原标题:error on firefox: $.widget is not a function

我在“Jquery UI”的网页上拥有几个多功能箱子,在“ Chrome和amp”中工作做得很好;Safun,但不是出于某种原因。

Error: $.widget is not a function
Source File: http://localhost:3000/javascripts/jquery.multiselect.js?1302660373
 Line: 563

任何想法为什么?


编辑:该行本身属于公开功能权利,即“//对初始化后的选择改变作出反应”

    // open the menu
open: function(e){
    var self = this,
        button = this.button,
        menu = this.menu,
        speed = this.speed,
        o = this.options;
    widget: function(){
    return this.menu;
},

// react to option changes after initialization
_setOption: function( key, value ){
    var menu = this.menu;

    switch(key){
        case  header :
            menu.find( div.ui-multiselect-header )[ value ?  show  :  hide  ]();
最佳回答
问题回答

任何人如果想到这一点,但却有要求;确保你按正确的顺序将 Java字档案列入。 造成这一错误的原因是,我在多位当选人档案之后被列入名单。

答案可能与问题者的情况无关,但为了其他人,我在这里发言。 解决这个问题。

我在使用铁路3.2时发现这一错误,并通过删除公共/资产夹加以固定。 资产管道似乎仍有许多问题。 我不知道细节,但也有其他 Java字失误,这种方式是固定的。

实际上,如果你正在发现这一错误,那就错了。

a) per @andyb answer - you haven t included the correct jQuery UI components

页: 1

b) your DOM is not loaded yet with the correct $.widget and therefore your function is attempting to call before $.widget has loaded. to fix the problem, ensure $.widget is called BEF页: 1E your function





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Private FireFox plugin

I m looking at getting a FireFox plugin developed - but is it possible to create a plugin that is for private use only, so only those I share it with have it and not open to the masses? Need this for ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Cross-browser development

I m developing a web application for a new service, starting from Firefox 3.5. The interface design is tableless, only using divs + CSS & performance-blessed practices. Now, while being ...

Cross browser way of setting IFrame to "about:blank"?

Does anybody know a proper, cross-browser way to "empty" an IFrame? Is "about:blank" recognized without error across all browsers? Is it valid to give an IFrame an empty src?

热门标签