Course Details

Previous Page


JavaScript SPA: Working With Validation


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/Description
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.

Target Audience
Web developers seeking an introductory guide to developing lightweight, high performance JavaScript single page applications in Visual Studio 2013

Prerequisites
None

Expected Duration (hours)
1.5

Lesson Objectives

JavaScript SPA: Working With Validation

  • 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
  • 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
  • use Custom Validation Rules and Report Validation Errors
  • Course Number:
    sl_jssp_a08_it_enus