Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI not initializing

I am using the jQuery UI components but having some problems. If I try and do something simple like $("#mydiv").draggable() I get an error message "Microsoft JScript runtime error: Object doesn't support this property or method".

The jQuery UI seems to be loaded because I put a alert() in the js file it contains (see code) and the alert is displayed. I am really stuck on this.

;jQuery.ui || (function($) {

    var _remove = $.fn.remove,
    isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9);

    alert("jquery.ui.loading"); // 

    //Helper functions and ui object
    $.ui = {
        version: "1.7.2",
like image 386
Craig Avatar asked Feb 28 '23 13:02

Craig


1 Answers

Are you using some other javascript libraries at the same time? It might be other libraries also using the $ shortcut and it gets your $ not referencing jquery anymore.

like image 94
xandy Avatar answered Mar 12 '23 01:03

xandy