Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh button not working #15

Closed
alirezanet opened this issue Feb 1, 2018 · 6 comments
Closed

refresh button not working #15

alirezanet opened this issue Feb 1, 2018 · 6 comments

Comments

@alirezanet
Copy link

everything is perfect but captcha refresh button not working.

@VahidN
Copy link
Owner

VahidN commented Feb 1, 2018

  • This library uses unobtrusive Ajax library for the refresh button. Make sure you have included its related scripts too:
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js"></script>

@alirezanet
Copy link
Author

thanks for reply.
I`m already using this library for validate my forms. so it is included on my page. also its working for dtncaptcha validation errors too. just refresh button not working.
11

@VahidN
Copy link
Owner

VahidN commented Feb 1, 2018

  • jquery.unobtrusive-ajax is different than jquery-validation-unobtrusive which is used for validations. make sure you added the unobtrusive-ajax lib too.
  • What do you see in the developers console's network tab of your browser? are there any errors at there?

@alirezanet
Copy link
Author

alirezanet commented Feb 1, 2018

good point! i'm not using jquery.unobtrusive-ajax and there is no error in browser console.
i added jquery.unobtrusive-ajax and have some errors now.

Uncaught TypeError: a(...).live is not a function at ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js:5 at ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js:5

@VahidN
Copy link
Owner

VahidN commented Feb 1, 2018

Don't use it from the CDN. It seems the CDN version uses deprecated jQuery methods like live. Try this one:
https://github.com/aspnet/jquery-ajax-unobtrusive/tree/master/dist

@lock
Copy link

lock bot commented Jan 18, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related problems.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants