Jquery plugin not loading - script crashes

I tried this with several different plugins, so I'm sure that they are not. I also have one working on my personal machine, and it works fine.

I load jquery and then load the second plugin. Then the following line of code calls the plugin through:

$("a[rel]").colorbox(...)

or

$("a[rel]").overlay(...)

and I get "the object does not support the property or method". This is not an html object, I narrowed it down to the actual function call for the jQuery plugin - the $ ("a [rel]" selector works fine alone. It's as if the plugin never loads.

Have any of you ever seen this? I work on XP, so IIS6 (5?) Last jquery 1.3.2, although I tried 1.3.1 and 1.2.6.

Many thanks!!!

+3
2

, , :

<script src="jqueryScripts/jquery-1.3.1.js" type="text/javascript"></script>

ASP, .asp, , 2 , .

, ?

+8

javascript , , , . , jScript getScript, .

$.getScript("http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js", function(){
  $("#go").click(function(){
    $(".block").animate( { backgroundColor: 'pink' }, 1000)
      .animate( { backgroundColor: 'blue' }, 1000);
  });
});
+1

Source: https://habr.com/ru/post/1707245/


All Articles