Performing Validation

In Chapter 5, “Creating Forms,” I explained how you can use HTML5 validation attributes to validate form data submitted in a Windows Store app. However, it is important to realize that any validation performed in a Windows Store app can always be bypassed when calling a remote Mobile Service. A user can interact directly with the remote service and submit any data that you can imagine.

If you want to validate the data submitted to a Mobile Service then you should create delete.js, insert.js, read.js, or update.js scripts that execute on Azure when a Mobile Service is invoked. It is worth emphasizing that these scripts execute on the Azure server (in one of Microsoft’s data centers) and not within a Windows Store app. Because ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.