Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Handle Failed update request with TypeConversion

$
0
0
When I call model.save(), the conversion will occur before the ajax call to server. Hence if the ajax call is failed, the conversion has already happened i.e. model's data is already changed. 

And there is no way back. In my case, other controller is already bind to the model, hence they display model's data in server's format as well, which is undesired.

How should we handle this case? What's the best practice? 

Viewing all articles
Browse latest Browse all 3491

Trending Articles