Popular
Newest
Updated
Sign in
Create an account
Categories
Admin Templates
197
Multipurpose Templates
164
Landing Pages
151
Portfolios & Resumes
86
Ecommerce
45
Blogs & Magazines
26
Directories & Listings
26
UI Kits & Website Builders
10
Documentation
5
Specialty
103
Topics
General
273
Business & Corporate
115
Design & Creative Services
114
Apps & Software
52
Retail & Shopping
33
Startups & SaaS
27
Marketing & Conversion
21
Restaurants & Cafes
17
Education & Learning
16
Finance & Accounting
16
See all →
Compatible with
Bootstrap
767
React
41
PHP
38
Tailwind CSS
37
Laravel
25
Angular
23
Python
23
Vue.js
21
Django
20
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
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?
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?