Solved

Mobile menu works on local network but not on server

Posted on 2013-12-09
5
342 Views
Last Modified: 2013-12-09
If you visit conutils.com you will find the mobile menu does not work.

These exact files run on my local network.

They are .php files could the php configurations on my server be the problem?

I am using the bootstrap css framework or whatever they call it.
0
Comment
Question by:burnedfaceless
  • 2
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 39707089
looks like you're loading bootstrap before jquery.

bootstrap depends on jquery, so you have to switch the order.

<head>
....
<script src="https://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
...
</head>

Open in new window


in fact, you're loading jquery at least twice. that's bad. remove the one at the bottom of the page.
0
 

Author Closing Comment

by:burnedfaceless
ID: 39707098
Wow what an idiot mistake I made.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39707099
This...

<script src="../../dist/js/bootstrap.min.js"></script>

is showing 404 not found.

This... <script src="https://code.jquery.com/jquery.js"></script>

and this...  <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>

are two different versions/copies of jQuery v1.10.2 .  You should probably have only one.
0
 

Author Comment

by:burnedfaceless
ID: 39707147
I took out everything at the bottom. I kept the code at the top the one I am assuming is the latest version.

Thanks that was a major brain fart.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39707210
I was still checking and typing when @ kozaiwaniec posted an answer for you.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question