Popular
Newest
Updated
Sign in
Create an account
Categories
Admin Templates
205
Multipurpose Templates
169
Landing Pages
161
Portfolios & Resumes
88
Ecommerce
50
Blogs & Magazines
26
Directories & Listings
26
UI Kits & Website Builders
10
Documentation
5
Specialty
113
Topics
General
279
Business & Corporate
126
Design & Creative Services
116
Apps & Software
56
Retail & Shopping
36
Startups & SaaS
27
Marketing & Conversion
21
Restaurants & Cafes
18
Finance & Accounting
17
Education & Learning
16
See all →
Compatible with
Bootstrap
799
Tailwind CSS
49
PHP
43
React
42
Laravel
27
Python
25
Angular
24
Vue.js
22
Django
21
ASP.NET Core
14
See all →
Discussion on
Smarty - Website + Admin + RTL
Details
Discussion
Back to discussions
Error with <a class="nav-link js-ajax". It does not work when link to a js file.
jag
PURCHASED
10 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?
Reply
Close
Error with <a class="nav-link js-ajax". It does not work when link to a js file.
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?