Solved

Mobile menu works on local network but not on server

Posted on 2013-12-09
5
340 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 82

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 82

Expert Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now