I want to use JavascriptMVC for my new project, but I have a problem.
client = new Client($('#create-client-form').formParams());
client.save(successhandler, errorhandler);
You just need to call success back with an object that contains the id of the new instance and any other properties that should be set on the instance.
But what if validation fails on server side? In this case my callback should be an object containing error messages, and not an id? Anybody using JavascriptMVC and handeled this situation?