Loading scripts in v4.5 creates an error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 2 ans
The Tag Helper opt-out character ("!") should work when we use it razor outputs a target tag as is. I have no idea why you face it. It might be related to browser caching. Let's try to add cache busting for the script path just to be sure.
Il y a 2 ans
Ok I just setup Visual Studio using IIS and a domain name and this works

<!script src="/Plugins/SSI.Editor.CKEditor/Scripts/ckeditor/ckeditor.js"></!script>

Seems there is only an issue using IIS Express

thanks for your help :)
Il y a 1 an
Nevermind this post.
Il y a 1 an
@Yidna sir,

Have you find a way to test js code with IIS Express and VS for local environment ?
or its best to use file available from internet ?

Thanks in advance.
Il y a 1 an
Sorry I dont know
I always just use IIS with domains defined and setup in the Store
Il y a 1 an
I fetch the error when try to load js and css files.
In nopcommecre 4.40 I was use simple way to call it
<link rel="stylesheet" href="~/Plugins/Payments.NamePayment/Content/file.css" />
<script src="~/Plugins/Payments.NamePayment/Scripts/file.js"></script>

But in nopcommecre 4.50 didn't work!!!!!
Il y a 1 an
Try <!script
Instead of <script
Il y a 1 an
It won't work in localhost
Il y a 1 an
Works fine here on localhost.

I disabled disk cache in appsettings and i dont use iis of course
Il y a 1 an
hkbits wrote:
Try <!script
Instead of <script


Didn't work with me in local host
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.