Skip to content

Releases: haacked/aspnet-client-validation

Relax on the URLs

24 Nov 00:38
53275e7
Compare
Choose a tag to compare

What's Changed

  • Be less restrictive when validating urls by @haacked in #12

Full Changelog: v0.5.0...v0.5.1

The hidden are not invalid

18 Nov 18:40
Compare
Choose a tag to compare

What's Changed

  • Only validate field if not hidden by @skttl in #7

Full Changelog: v0.4.0...v0.5.0

More Unobtrusive Improvements v0.4.0

18 Nov 00:45
Compare
Choose a tag to compare

This release consists entirely of 3rd party contributions. Thanks @skttl!

What's Changed

  • Adds method for focusing first invalid field upon validation. by @skttl in #6
  • Adds isValid(form) method for checking whether a form is valid by @skttl in #8
  • Fixes bug when using v.validateForm() by @skttl in #9

New Contributors

  • @skttl made their first contribution in #6

Full Changelog: v0.3.0...v0.4.0

Validation Event Choice v0.3.0

13 Oct 21:05
Compare
Choose a tag to compare
  • Add support for choosing the event that triggers validation

By default, input fields are validated when the input event fires. In other words, when the input changes. Now you can control it so a field validates on blur for example: <input type="text" data-val-event="blur" ... />

Load Timing v0.2.3

24 Aug 17:47
Compare
Choose a tag to compare
  • Update the bootstrap method to set up client validation earlier

Prior to this change, the bootstrap method waited till the window load event fired. Now it checks to see if the document is loaded and if not, sets everything up when the document DOMContentLoaded event is fired.

Submit Propagation Nation v0.2.2

24 Aug 16:58
Compare
Choose a tag to compare
  • Fixes an issue when using client validation with an "ajax" form (via @haacked in #1).

NOTES
A form may have other event handlers attached to the submit event. For example, when implementing an Ajax form. Rather than call the
submit method directly which bypasses those handlers, if the form is valid, this allows the original form submit event to propagate.

However, if the form is invalid, this stops propagation of the form event entirely, even to other registered event handlers. This is usually what you want. If not, then we can add options later.

IMPORTANT: This requires that client validation registers its event handler on forms first.

Programmatic validation v0.2.0

14 Aug 17:26
Compare
Choose a tag to compare
Pre-release