1

I understand that this has to be done with jQuery.noConflict(), but I can't get it to work. Here is my code:

http://pastebin.com/aL5HDkTP

Basically, the function for photos needs to use version 1.3.2, and at the same time, the function for nav needs to use 1.6.2.

As you can see, I have attempted to do this with jQuery.noConflict(), but to no avail.

Thank you in advance.

4 Answers4

1

Why does the nivo lib require 1.3.2? The nivo website itself uses 1.7.2 just fine. Is your nivo lib out of date?

Joe Frambach
  • 26,300
  • 10
  • 69
  • 98
1

you can use multiple version using noConflict , use different namespace when referring to specific methods in the jquery thats all.

I do not how you have invoked the methods ,but here is the flow.

1.Load jQuery version A
2.call var jQuery_A = $.noConflict(true);
3.Load jQuery version B
4.call var jQuery_B = $.noConflict(true);

Now you reference both version with the two namespaces you created above as shown below.

jQuery_A("#buttonA")
    .click(function() {
           .......
        });
Tito
  • 8,629
  • 11
  • 47
  • 85
0

I'm not seeing anything clash with this post on first glance, but I'm getting an unknown reference to a jcps variable around line 44. That could have messed things up assuming it was not declared in one of your loaded scripts.

Community
  • 1
  • 1
Sage Gerard
  • 1,210
  • 7
  • 28
0

I ran into same issue a couple of times, the way I overcome it was by replacing $ of jQuery with jQuery instances all over the jquery code. e-g:

$(function() {

})

will become

 jQuery(function() {

    })
defau1t
  • 10,457
  • 2
  • 33
  • 46