Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"$.support is undefined"

"$.support is undefined" error when trying to use fancybox with jQuery. Never seen this before.

Could it be due to conflicting jQuerys? Any ideas?

jQuery is definitely being run, as the other elements on the page that utilize it work fine.

like image 918
Rhys Avatar asked Nov 05 '10 14:11

Rhys


3 Answers

did you make sure that the jquery library is on top of the jquery fancy box library?

see for example this one:

this is wrong

<script src="../../FancyBox/Fancybox.js" type="text/javascript"></script>

<script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

this is the right way

<script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>

<script src="../.. /FancyBox/Fancybox.js" type="text/javascript"></script>
like image 50
Carls Jr. Avatar answered Nov 08 '22 05:11

Carls Jr.


Are you including the fancybox JavaScript file before jQuery? Don't.

like image 37
Matt Ball Avatar answered Nov 08 '22 06:11

Matt Ball


What version of jQuery are you using? $.support is a feature implemented in jQuery 1.3+

like image 1
Bill Yang Avatar answered Nov 08 '22 06:11

Bill Yang