CodeIgniter Forums
MAMP new install, JS no longer working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: MAMP new install, JS no longer working (/showthread.php?tid=62744)



MAMP new install, JS no longer working - markofla - 08-20-2015

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.


RE: MAMP new install, JS no longer working - freddy - 08-21-2015

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


RE: MAMP new install, JS no longer working - RogerMore - 08-21-2015

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


RE: MAMP new install, JS no longer working - CroNiX - 08-21-2015

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>