?
Solved

Mobile menu works on local network but not on server

Posted on 2013-12-09
5
Medium Priority
?
346 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 2000 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 84

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 84

Expert Comment

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

Featured Post

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
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 …
Suggested Courses

752 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