[solved] - $("a#example1").fancybox Is Not A Function Error
- Forums
- Javascipt
- [solved] - $("a#example1").fancybox Is Not A Function Error
this is the solution for fixing this error i am getting with fancy box is not working so this is what i did to fix it [844], Last Updated: Sat May 18, 2024
wallpaperama
Tue Mar 20, 2012
3 Comments
940 Visits
i was trying to integrate fancy box to a website and it was not working. so i fired up firebug on firefox to see what the error was and thats when i saw this error
$("a#RplyImg").fancybox is not a function
so i tried it on internet explorere, it worked, then i tried it on chrome, it didnt work.
i was so confused. i did some research and one of the post that i read mentioned that the jquery engine is included twice. i looked at my code and i only included the jquery engine once.. so another script might be including it again..
as i look at my code i saw i was including this file from fancybox:
jquery.fancybox-1.3.4.pack.js
as i looked at the directory in fancy box, i noticed there was another file called
jquery.fancybox-1.3.4.js
notice the difference? one is jquery.fancybox-1.3.4.pack.js and jquery.fancybox-1.3.4.js (without the .pack)
so i included jquery.fancybox-1.3.4.js instead, it worked!!!
hope that helps