Javascript Conflict
PermalinkI'm having trouble with my template. I think it's a javascript conflict but I have very little to no js experience.
My navigation should work like this:http://www.wyser.nl/test/
But instead:http://www.wyser.nl/wyser/
Can anyone help?
Thx, Arjan
Only I can't seem to find the line where it's missing, if I search for "var Class = {", nothing comes up... :-(
Can you see on wich line it is?
Sorry, my bad. Class is in mootools. I think you just need to move your library scripts above your other scripts so Class is defined before your other scripts need to use it.
<script type="text/javascript" src="assets/js/bundle.js?b=assets/js&f=libraries/mootools-core-1.4.2.js,libraries/mootools-more-1.4.0.1.js,classes/FadeGallery.js,classes/Navigation.js,classes/CdA.js"></script>
In the working version, there is a line in the minified javascript starting with
In the not working version, you are getting a Javascript error (in the console in Chrome developer tools) that "Class" is not defined. So that piece is missing. If you include the missing script where Class is defined, that error will go away.
Hope this helps.
-Bob