We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Validation does AJAX requests to check-URLs.
Is it possible to easily add an error-alert if the request fails, @d22?
A possible case where this is needed is if CSRF validation fails (e.g. because the user enabled secure cookies but doesn't use TLS).
The text was updated successfully, but these errors were encountered:
Yes, this is possible, the remote validation uses the jQuery ajax object, so this is possible (example from packages.js):
remote
packages.js
... remote: { url: "/packages/check", type: "post", error: function () { alert('Remote validation failed'); }, data: { 'package': function () { return $('#packageId').val() }, 'name': function () { return $("#name").val() }, csrfmiddlewaretoken: $('input[name=csrfmiddlewaretoken]', '#packageform'). } } ...
Sorry, something went wrong.
dbrgn
No branches or pull requests
Validation does AJAX requests to check-URLs.
Is it possible to easily add an error-alert if the request fails, @d22?
A possible case where this is needed is if CSRF validation fails (e.g. because the user enabled secure cookies but doesn't use TLS).
The text was updated successfully, but these errors were encountered: