Please help: this function doesn't work very well with jQuery

I have this feature (netwaver.com/projects/featured-content-gallery-pligg-module/) on my site, but it doesn't work with the jQuery plugin. I have researched and read on the internet and it says that it changes "$". Could some help me with this?

But the "$" symbol is inside: {$ featurify} .. how would that work? All example I see shows the $ character outside

+1


a source to share


3 answers


They probably mean jQuery is not in conflict mode .



+1


a source


The clash of names has to do with what $

is the shortcut for jQuery

. You need to call:

jQuery.noConflict();

      



Then, once you have done that, you need to ensure that you are calling jQuery without using "$"

Many more options and discussion here: http://docs.jquery.com/Using_jQuery_with_Other_Libraries .

+1


a source


var j = $.noConflict();

      

Add jQuery library to load after the library causing the conflict. Then run this code. JQuery should now be accessible via j, for example:

j('.class').test();

      

0


a source







All Articles