开发者

"$.support is undefined"

"$.support is undefined" error when trying to use fancybox with jQuery. Never s开发者_高级运维een 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.


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>


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


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


You should upgrade to the latest jquery version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜