[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Mobile menu works on local network but not on server

Posted on 2013-12-09
5
Medium Priority
?
350 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 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month18 days, 11 hours left to enroll

834 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