Created
May 3, 2012 07:36
-
-
Save aq1018/2584039 to your computer and use it in GitHub Desktop.
Client + Server side model and form validation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client side: | |
model Sync (Ajax API) | |
model view binding. ( Backbone.ModelBinder ) | |
form builder, build a form based on a model | |
Server side: | |
model validation needs extra deferred validators for uniqueness. | |
model sync will go to mongodb | |
Shared: | |
model validation. Custom object validator based on $.Deferred + node-validator | |
model validation needs to be completely asynchronous. (server will need this, but client can live with it) | |
model validation needs to aggregate errors if save fails. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment