Re: conflict with JS

Home Forums Older releases 0.9.x conflict with JS Re: conflict with JS

#1570
admin
Keymaster

Hi, SmartMenus supports jQuery 1.4.4+ and it should work with 1.6.2 without problems so you don’t need to include 1.11.0 for it. If you still need to include it for your filter portfolio, then you could do it in noConflict() mode – i.e. include it after 1.6.2 in the source like this:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
jq1110 = jQuery.noConflict(true);
</script>

Then wrap all your filter portfolio code like this:

(function($, jQuery) {

// filter portfolio code

})(jq1110, jq1110);

This way only your filter portfolio code will use 1.11.0 and all other scripts on your page will still use 1.6.2.

Please let me know if you still have any troubles (BTW, a live test page would really help very much too).

Cheers!

Register

You will be emailed a link to set your password.

Login

Lost password?