Welcome Guest, Not a member yet? Register   Sign In
MAMP new install, JS no longer working
#1

Using CI 3. Exact same files on remote server (web hosting hub, php 5.3.29) and localhost MAMP (new install, php 5.6.10). JS works on the remote server but now all of a sudden JS not working on my Mac Book Air when accessing localhost site. I'm at wits end. Any advice, ideas? Thank you.
Reply
#2

Never get case like that but let me give another way how to debug in localhost also in server ya

1. just press CTRL + U then click js file if found both in server also in localhost
2. it might be you load wrong js or it doesn't load


CMIIW
Reply
#3

Hey Markofla,

Check if the script on your localhost is trying to load the JS online. Maybe the XSS protection of the browser is kicking in.
You can find this out if you check the browser console, an error will likely be displayed there.

Happy coding!

-Roger
Reply
#4

(This post was last modified: 08-21-2015, 12:10 PM by CroNiX.)

How are you loading your JS files? Are you using relative URLs or absolute? Try using a / before the segments like:

<script src="//assets/js/your_js_file.js"></script>
Reply




Theme © iAndrew 2016 - Forum software by © MyBB