Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
181
rated 0 times [  183] [ 2]  / answers: 1 / hits: 19938  / 10 Years ago, fri, june 27, 2014, 12:00:00

I am trying to make a lightbox gallery and have used the example source code.



Here is the documentation I read over: http://dimsemenov.com/plugins/magnific-popup/documentation.html



Uncaught TypeError: undefined is not a function

Uncaught ReferenceError: $ is not defined


I am not sure what the errors mean or what to do with them.



In a video tutorial I watched, they said something about a jquery conflict being a potential problem. On a different page of the website, I used a Kwicks sliding menu (which also used jquery). That's the only thing I can think of.



I would really appreciate any help you would be able to give me!



Thank you! There are no more errors, but now I need to make the hovering on the image work with the zooming in magnifying cursor.



I have made the hovering work, now I need to make the zooming in magnifying cursor work. I have attached a page of what I what the cursor to be when it hovers.



Example: http://dimsemenov.com/plugins/magnific-popup/



I have figured out the zoom cursor! Thanks for all the help!


More From » jquery

 Answers
31

The documentation of the plugin Magnific popup you are using suggests -



Including files



<!-- jQuery 1.7.2+ or Zepto.js 1.0+ -->
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js></script>

<!-- Magnific Popup core JS file -->
<script src=magnific-popup/jquery.magnific-popup.js></script>


Remember : You need to include jQuery file reference, for the plugin to work; rather every jQuery plugin. And in the specified order. This is the sole reason behind $ not defined and undefined in not a function.


[#70404] Wednesday, June 25, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pierceabnerc

Total Points: 430
Total Questions: 92
Total Answers: 102

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;