Jump to content

fancybox is not a function? ( jQuery )


Recommended Posts

Per chrome console

-----

Uncaught TypeError: $(...).fancybox is not a function

(anonymous function)	@	(index):4149
n.Callbacks.j	@	jquery-1.11.0.min.js:2
n.Callbacks.k.fireWith	@	jquery-1.11.0.min.js:2
n.extend.ready	@	jquery-1.11.0.min.js:2
K	@	jquery-1.11.0.min.js:2

-----

Line #'s in my index per chrome
4149    $('.fancybox').fancybox({
4150            'hideOnContentClick': false,
4151            'transitionIn'	: 'elastic',
4152            'transitionOut'	: 'elastic'

Based on a google search I found a post on stackoverflow. That said this is related to two (.js files loading and crashing each other).  example: jQuery

 

 

Now the author at the end of the post suggest using this code snippit to solve the issue.

<script type="text/java script">
var $= jQuery.noConflict();

My question to you guys/gals is where would I use that snippet? Am I on the right track or is my google-fu messed up?

 

Thanks in advance.

-b

Link to comment
Share on other sites

1) Is there a demo of prestashop 1.6.1.1 somewhere thats not framed?

2) Or do you know how to break out of the framed demo prestashop provides?

 

I cannot run chromes console or firefox firebug on the demo prestashop provides.

I think this TypeError is just a typo in the product.js in regards to fancybox.

 

This file would be found in default-bootstrap/js/product.js

 

 

Thanks

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...