[Solved]problem with jquery plugin - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [Solved]problem with jquery plugin (/showthread.php?tid=46669) |
[Solved]problem with jquery plugin - El Forum - 11-10-2011 [eluser]amipaxs[/eluser] Hello , I'm trying to use a lightbox-style plug-in in my contact page, the problem is that on firebug console i get the following message Code: $("a#single").fancybox is not a function code on contact.php Code: <div class="img-wrapper"> I have seen this "is not a function" message with diferents plugins when not used on the index page, even when I browse the source code in contact i see the paths to jquery and plugin are ok , so i copied the code from above in the index page and it works perfectly, it opens the image using the fancybox plugin. the jquery code that triggers the fancybox is located on the head section in the template as seen below: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> why do i get the error below when not in index ?? Code: $("a#single").fancybox is not a function thanks in advance! |