I'm having conflict issues (as expected) between two scripte on a particular page. One script (a feature gallery) uses Mootools, while the other (Tweetable) uses jQuery.

Is there an easy way to make these two play nicely on the same page?

Is it worth my time at all to build the feature gallery on a seperate mootools page and bring that into a jquery page via an iFrame?

Any help here would be appreciated.

3 answers

o.k.w 2355
0
points

The quick answer is yes, read this: Using jQuery and MooTools Together.

iFrame for image gallery, I think you should focus on building the HTML codes in a generic way which can be modified (if needed) easily for use with Mootools or JQuery gallery Plugins.

Answered almost 10 years ago by o.k.w
Masey 0
0
points

Cheers for the suggestion. That's something I already had a crack at unsuccessfully. Not sure PHP knowledge is sharp enough to handle that method.

Just gave the iframe idea a go and it seems to have worked a treat so far. ;)

Answered almost 10 years ago by Masey
danwellman 5600
0
points

You can use jQuery's noConflict method to give the $ variable back to Mootools and use another variable for jQuery functionality

Answered almost 10 years ago by danwellman
  • There's no need to use noConflict since the release of MooTools 1.2.3 MooTools will no longer snatch $ from jQ. Oskar Krawczyk over 9 years ago