Giter Site home page Giter Site logo

Comments (7)

VahidN avatar VahidN commented on June 9, 2024

Have you added its dependencies?

from dntcaptcha.core.

kajaljain avatar kajaljain commented on June 9, 2024
Yes, I installed below packages --

<PackageReference Include="Microsoft.jQuery.Unobtrusive.Ajax" Version="3.2.6" />

<PackageReference Include="Microsoft.jQuery.Unobtrusive.Validation" Version="3.2.11" />

<PackageReference Include="jQuery" Version="3.4.1" />
<PackageReference Include="jQuery.Validation" Version="1.19.1" />

from dntcaptcha.core.

VahidN avatar VahidN commented on June 9, 2024

After that you should add them to your _Layout file.

<script src="~/js/site.min.js" type="text/javascript" asp-append-version="true"></script>

Here /js/site.min.js is the minified version of all of the mentioned scripts in one file.
You should minify these scripts with this order

"node_modules/jquery/dist/jquery.min.js",
"node_modules/jquery-validation/dist/jquery.validate.min.js",
"node_modules/jquery-validation-unobtrusive/dist/jquery.validate.unobtrusive.min.js",
"node_modules/jquery-ajax-unobtrusive/dist/jquery.unobtrusive-ajax.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js"

And then add the final result to your layout file (or just add them one by one which is less efficient and it will have more round trips to the server).

from dntcaptcha.core.

caw-ishikajain avatar caw-ishikajain commented on June 9, 2024

I tried both ways still not working. What am I doing wrong?

image

image
image

image

from dntcaptcha.core.

VahidN avatar VahidN commented on June 9, 2024

Check out the debug output window and also the developers tools -> network tab of your browser to see if there are any errors?

from dntcaptcha.core.

kajaljain avatar kajaljain commented on June 9, 2024

I am getting below errors
image

from dntcaptcha.core.

VahidN avatar VahidN commented on June 9, 2024

This CSP works here.

from dntcaptcha.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.