JQuery user interface not initialized

I am using jQuery UI components but have some problems. If I try to do something simple, like $ ("# mydiv"). Draggable () The error message "Microsoft JScript runtime error: object does not support this property or method" appears.

The jQuery user interface seems to be loaded because I put a warning () in the js file it contains (see code) and a warning is displayed. I am really stuck with 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", 
+4
source share
3 answers

Are you using several other javascript libraries at the same time? It could be other libraries that also use $ shortcut, and now it no longer binds jQuery to $.

+8
source

Where is your code regarding jQuery UI loading? Both jQuery and jQuery users must be loaded (in that order) before attempting to use them.

 <script type="text/javascript" src=".../jquery-1.3.2.min.js"></script> <script type="text/javascript" src=".../jquery-ui-1.7.2.min.js"></script> <script type="text/javascript"> ... your code goes here </script> 

You need to be especially careful if you include javascript in user controls or server side. If you load your javascript at the end of the page and have controls or include the links referenced above, you can get javascript errors because although the file is included, it was not parsed before you could reference the functions in the included files.

0
source

Do you have a draggable baked into a custom jquery-ui.js file ?

0
source

All Articles