jag

Error with <a class="nav-link js-ajax". It does not work when link to a js file.

jag PURCHASED
9 months ago
Hi,

I'm trying to get a page using ajax but is not working. This is a asp.core MVC project.

This is the link in the layout page

<li class="nav-item"><a class="nav-link js-ajax" href="@Url.Action("Index", "Company")">Companies</a></li>

This is at the end of the companies page:

<div id="page_js_files">
<script src="~/customjs/company.min.js"></script>
</div>

The page appears in the browser but not works because the js file is not downloaded, just a semicolon

This is at the end of the page after load:

<!-- Core javascripts -->
<script src="/assets/js/core.min.js"></script>
<script src="/assets/js/vendor_bundle.min.js"></script>

<script src="/customjs/reversetimer.min.js"></script>

<!-- Page custom javascripts -->
;

What could be happening?