csosa
July 28, 2015, 6:50pm
1
I have a calculator on this PAGE but it is not functioning. I am
assuming it is not reading some of my scripts. This is the way I have
them on my HTML:
<link rel="stylesheet" type="text/css" href="Scripts/js/jquery-ui.min.css"/>
<link rel="stylesheet" type="text/css" href="Scripts/js/colorbox/colorbox.css"/>
<link rel="stylesheet" type="text/css" href="Styles/calc.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="Scripts/dropdown_language.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="Scripts/jquery.carouFredSel-6.0.4-packed.js" type="text/javascript"></script>
<script src="Scripts/productpages_carousel.js"></script>
<script type="text/javascript" src="Scripts/js/jquery.js"></script>
<script type="text/javascript" src="Scripts/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="Scripts/calc.js"></script>
You have multiple copies of JQuery being loaded
csosa
July 28, 2015, 6:56pm
3
I see which ones should be removed because when I remove one copy
it takes off styles and functioning…
PaulOB
July 28, 2015, 7:34pm
4
Try removing the 2 middle ones.
e.g.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="Scripts/dropdown_language.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script src="Scripts/jquery.carouFredSel-6.0.4-packed.js" type="text/javascript"></script>
<script src="Scripts/productpages_carousel.js"></script>
<script type="text/javascript" src="Scripts/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="Scripts/calc.js"></script>
It may be that your plugins need a specific version of jQuery so you may need to refer to the documentation of the plugins you are using to confirm. (If so then it gets a bit messy to accommodate other versions .)
BTW The css files should be in the head and not at the end of the html.
csosa
July 28, 2015, 8:11pm
5
hmm that didnt seem to work.
Right and Yeah I forgot about the links…
csosa
July 29, 2015, 3:28pm
7
hmm it does I guess I may have not refreshed it or something,but thanks for your help.
I see… it does not work on my local host.
system
Closed
October 28, 2015, 10:38pm
8
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.