How Do I Fix Lightbox2 Problems Using $.noConflict()?
I've imported images to my site. I want to open these images with lightbox2. I've installed the lightbox2-drupalmodule and that works on my frontpage (www.chirowijkoersel.be), but
Solution 1:
Wrap of you javascript, and use self invoking functions
(function($){
/// Your page code here
// Here you can use $
// We are passing jquery as $ to this self invoking function.
})(jquery)
Solution 2:
it could be javascript conflicts ?
Solution 3:
You would put the $.noConflict() inside a script tag, right after you import jQuery. So if you have something like:
<script src="jQuery.js"></script>
already, you'd just do:
<script src="jQuery.js"></script>
<script>$.noConflict();</script>
Hope that helps.
Post a Comment for "How Do I Fix Lightbox2 Problems Using $.noConflict()?"