5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

IT Skills     Web Development and Graphic Design     Scripting     JavaScript
A JavaScript single page application, or SPA, uses a combination of JavaScript libraries and web development frameworks to communicate with the server, consume and manage data, and to display application views on screen. A SPA serves up a single HTML page in which all of the application views are rendered on the client, and data that is retrieved from the server can be cached and efficiently managed on the client. In this course, you will learn how to implement custom data validation rules on the client and server, how to use Breeze validation, how to gather Breeze entity errors, how to parse Breeze entity error messages on the client, and how to display validation errors to the user in a JavaScript SPA in Visual Studio 2013.

Objectives

Using Custom Validation Rules

  • start the course
  • define a custom validation rule
  • use the Breeze Validator.register() method to register custom validation rules with Breeze
  • apply a validator to entities and properties

Reporting Validation Errors

  • add data annotations such as required fields and max length
  • create a view for displaying input validation errors on text input controls
  • use the errors.entitiesWithErrors.map() function and the entity.entityAspect.getValidationErrors() method
  • use a regular expression to parse the returned error object

Practice: Working with Validation

  • use Custom Validation Rules and Report Validation Errors