2
I am importing several Aces to the same site, the problem is some stop working. For example, one api to make an autocomplete, another to make an effect in the menu and another to a feedback box. Is there any way around these conflicts? I’m calling them as follows:
On the footer I have the following:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="js/jquery.easing.1.3.min.js"></script>
<script src="js/layerslider/js/jquerytransit.js"></script>
<script src="js/layerslider/js/layerslider.transitions.js"></script>
<script src="js/layerslider/js/layerslider.kreaturamedia.jquery.js"></script>
<script src="js/jquery.cycle.all.min.js"></script>
<script src="js/jquery.blackandwhite.min.js"></script>
<script src="js/jquery.jcarousel.min.js"></script>
<script src="js/jquery.jflickrfeed.min.js"></script>
<script src="js/fancybox/jquery.fancybox.pack.js"></script>
<script src="js/jquery.touchswipe.min.js"></script>
<script src="js/config.js"></script>
<script src="js/custom.js"></script>
<script src="changer/js/changer.js"></script>
No header:
<link rel="stylesheet" href="js/layerslider/css/layerslider.css" />
<link rel="stylesheet" href="js/fancybox/jquery.fancybox.css" />
For the autocomplete, it is also found in the header:
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
I’m using the jQueryUI autocomplete.
but then I will lose functionalities, right?
– pc_oc
No. You just need a jQuery.
– J. Bruni
On the other hand, perhaps the libraries you are loading have some conflict with each other or require different versions of jQuery. You can’t guess without knowing exactly what they are. Edit your question, including ALL
<script>
, for we are not seers... at least I am not. :-)– J. Bruni
thanks! I’ve already edited. But when replacing only one, there are features that no longer work
– pc_oc
Only autocomplete does not work now. The autocomplete code is in the header and the rest in the footer. There are problems if you are in that order?
– pc_oc
You’re confusing things. You just need a
<script>
to the jQuery library. And you’ll need a<script>
for each additional library. I asked you to include the<script>
of ALL the biliotecas you’re including, and not just one, so we can see what you’re doing wrong, and we can show you the right way.– J. Bruni
Understand: the more code you post, the better. : -) Help us help you.
– J. Bruni
I’ve already edited, thanks for continuing to help!
– pc_oc
now only the autocomplete does not work. The menu and its effects and a feedback bar already work.
– pc_oc
I updated the answer. Please check if the suggestion works.
– J. Bruni
I already checked. everything was working! thanks and a hug! :)
– pc_oc