blue-eye blue-eye - 7 months ago 33
PHP Question

Jquery Tag-it b.curCSS is not a valid function error

http://marianoagency.com/intranet/trial.html

Everything works fine until I start typing any of the sample tags (like "php").

As soon as I hit "p" the b.curCSS script error pops up. The popup still works with the tags, but it is in the wrong place (top left 0,0).

What am I doing wrong?

Answer

curCSS was removed from jQuery 1.8 and up, so you need to upgrade your jquery.ui. Looking at http://bugs.jqueryui.com/ticket/8501 you will see the issue.

Take a look at:

https://github.com/jquery/jquery-ui/commit/98772fd0a1094f7fb2fbe1d8a95557bf2b545f6e

If you can't upgrade your jQuery UI library, simply add this javascript after your jQuery file, before the jQuery UI file(s).

(function($) {
    if (!$.curCSS) {
       $.curCSS = $.css;
    }
})(jQuery);
Comments