Welcome Guest, Not a member yet? Register   Sign In
[OT] Nav breaks with method call in URL
#2

It sounds like your js file is not being found because your js is not working. This is nothing to do with CI.

Taking a quick peek at your code:

Code:
<script src='js/device.min.js'></script>

Once a method is used, this link becomes something like:

Code:
http://dev.sunshineartist.com/events/js/device.min.js

Rather than as you intended:
http://dev.sunshineartist.com/js/device.min.js

You should use:
Code:
<script src='/js/device.min.js'></script>
notice the first forward slash making the link use the base domain root, or even better:
PHP Code:
<script src='<?php echo base_url('js/device.min.js'); ?>'></script

This was the first one I found, but you may have others on the page.

Hope that helps,

Paul

Base URL in the docs: http://www.codeigniter.com/user_guide/he...l#base_url
Reply


Messages In This Thread
RE: [OT] Nav breaks with method call in URL - by PaulD - 08-04-2016, 05:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB