• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.