Skip to content
This repository has been archived by the owner on Dec 2, 2018. It is now read-only.
amura11 edited this page Nov 16, 2015 · 6 revisions

What is it?

The jQuery Unobtrusive Validation plugin is a JavaScript library written to provide unobtrusive validation setup for ASP.NET MVC Web Applications. The library is similar to the jquery-validation-unobtrusive library in that it parses data attributes created by the ASP.NET MVC Framework. Where this library differs is that it is not coupled to any specific validation plugin.

The jQuery Unobtrusive Validation library aims to provide a framework that easily allows a developer to use any validation plugin with the ASP.NET MVC Web App framework. It achieves this through what are referred to as 'adaptors'. An adaptor, simply put, takes a list of validation rules created by the library and transforms them into a configuration a vendor specific plugin can use.

For example, an adaptor for the jQuery Validate plugin takes in the standard configuration created by the library, converts it into a jQuery Validate configuration, and initializes jQuery Validate with that configuration.

For a more in depth example, see How it Works

Why bother?

The ASP.NET MVC Framework a great framework and plays well with Bootstrap. However, trying to use a different front end framework becomes difficult, especially when it comes to validation. The biggest issue comes from frameworks that provide their own validation plugin.

This library intends to broaden the diversity of ASP.NET MVC Web Applications through providing a framework that can bridge the gap between ASP.NET Data Validation and JavaScript validation plugins. Ultimately making it easier for developers to use other validation plugins and front end frameworks in their ASP.NET MVC Web Applications.

Road Map

Present

Currently this project is in it's infant stages and a lot of decisions are still being made. The current goals are:

  1. Finalize the core library functionality for creating the standard configuration and calling adaptors
  2. Finalize the way an adaptor is added to the system
  3. Solidify the structure of the adaptors in such a way that only a minimal amount of code is needed to create a new adaptor

Future

  1. Create an automated build system to generate complete and minified JS files for each adaptor and a single master JS file with all adaptors included
  2. Create a fully functional adaptor for jQuery Validate and Semantic UI
  3. Create a useful guide to building a custom adaptor

End Goal

The ultimate goals are:

  1. To provide a simple framework for creating adaptors for any validation plugin
  2. To have a set of common adaptors that can be used for the most common plugins of that time, written by the community
  3. To provide comprehensive documentation for both the ASP.NET MVC Framework validation and the jQuery Unobtrusive Validation library