Hi,
I want to implement with bootstrap3 a submenu which opens not on hover but on click (because on mobile devices it would be smarter).
I found [url]http://www.bootply.com/97919
Screenshot: [URL]http://www.randspringer.de/good_lokal.png
Now I copied the website to my remote hosting system an it did not work. The submenu does not open on click.
[URL]http://www.randspringer.de/bad_remote.png
The Code (HTML,javascript) is the same on both environments. I think it has somethiong to do with wrong sequence of loading javascripts.
I do in the end of the body:
<!– load jquery –>
<script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”]https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js
<!– load bootstrap –>
<script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js”]http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js
<!– load navigation bar and do the javascripting like in [url]http://www.bootply.com/97919
</script> <script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:http://www.randspringer.de/javascript/loadtoc.js”]/javascript/loadtoc.js
<script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:http://www.randspringer.de/javascript/navigation.js”]http://www.randspringer.de/javascript/navigation.js
<!– some them stuff –>
<script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:http://www.randspringer.de/squad/js/jquery.easing.min.js”]/squad/js/jquery.easing.min.js
<script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:http://www.randspringer.de/squad/js/jquery.scrollTo.js”]/squad/js/jquery.scrollTo.js
<script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:http://www.randspringer.de/squad/js/wow.min.js”]/squad/js/wow.min.js
<script type=”text/javascript” src=”[URL=”http://www.webdeveloper.com/forum/view-source:http://www.randspringer.de/squad/js/custom.js”]/squad/js/custom.js
I think the error has something to do with the different event binding (see screenshots) but I’m confused about the reason.
Any help is welcome. I think I have to learn how to handle dependencies wiht javascript.
You can test the bad version on [URL]http://www.randspringer.de/freunde.html
Thomas