jQuery versions conflict

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

jQuery versions conflict

afnb
Hello,

I'm embedding Orbeon Runner and i'm having some jQuery version conflicts.
My website uses jQuery 1.10.2 and Orbeon uses 1.8.2. Is there some way to resolve this?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: jQuery versions conflict

Alessandro  Vernet
Administrator
Antonio,

I would try loading your own version jQuery first, and then calling jQuery's noConflict(), as done below.

<script type="text/javascript" src="http://example.com/jquery-1.1.3.js"></script><script type="text/javascript"> var jQuery_1_1_3 = $.noConflict(true); </script><script> …other scripts loaded by Orbeon Forms …

And of course, this is something that Orbeon Forms should do itself, and we have an RFE for this:

https://github.com/orbeon/orbeon-forms/issues/1155

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet