jQuery UI 1.8.13 sudden error

前端 未结 4 1735
半阙折子戏
半阙折子戏 2020-12-29 02:25

We have been using Jquery from this link http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js for drag and drop. Suddenly we notice it is not working now an

相关标签:
4条回答
  • 2020-12-29 02:41

    $.curCSS: This method is simply an alias for jQuery.css() from jQuery 1.3 onward. Although it has never been part of the documented API, some external code has been known to use it, perhaps thinking it was “more efficient.” Now it’s “more gone.” - from the page here.

    This error can occur by using curCSS also.

    replace:

    $.curCSS(element, attrib, val);
    

    with

    $(element).css(attrib, val);
    
    0 讨论(0)
  • 2020-12-29 02:43

    I had same problemm. Search for a link like this in your project:

    https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

    and change it with this:

    https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js

    It worked for me.

    0 讨论(0)
  • 2020-12-29 02:45

    Base on another answer... I did something slightly different...

    Instead of replacing:

    $.curCSS(element, attrib, val);
    

    with:

    $(element).css(attrib, val);
    

    I created a new function:

    $.curCSS = function (element, attrib, val) {
        $(element).css(attrib, val);
    };
    
    0 讨论(0)
  • 2020-12-29 02:47

    This javascript error is caused by jQuery and jQueryUI being out of sync with each other. Rather than go back to an older version of jQuery, I would update jQuery UI. This link from the jQueryUI blog talks about support for the latest version jQuery. I experienced the same error before updating jQuery UI.

    0 讨论(0)
提交回复
热议问题