Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery plugin not loading -- script failing

I've tried this with a couple of different plugins, so I'm sure it's not them. I also have one running on my personal machine and it works just fine.

I'm loading jQuery and then loading the plugin second. Then the next line of code is calling the plugin via:

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

or

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

and I'm getting "object does not support property or method". It's not on the html object, I've narrowed it to the actual function call to jQuery plugin -- the $("a[rel]") selector is working fine alone. It's as if the plugin is never actually loading.

Have any of you ever seen this? I'm running on XP, so IIS6 (5?) Latest jQuery 1.3.2 though I tried 1.3.1 and 1.2.6.

Much appreciated!!!

like image 826
klkitchens Avatar asked Sep 15 '26 07:09

klkitchens


1 Answers

I had the same problem yesterday, and it was because I had this line twice:

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

It was in an ASP project and I included another .asp page which also had the reference, so it took me 2 hours to figure out..

Maybe you have the same problem?

like image 135
Thomas Stock Avatar answered Sep 17 '26 21:09

Thomas Stock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!