I have a knockout viewModel that includes several arrays of variable size that is eventually submitted ala
ko.utils.postJson(location.href, { viewModel: ko.mapping.toJS(this) });
I have a Json model binder server side that depends on the names of the properties being the same. After looking at the implementation of ko.utils.postJson, I determined that the problem lies with setting the value property of an input element in some browsers (notably Chrome).
Here is a JSFiddle to illustrate the problem.
I'm considering just using ajax to submit the viewModel and then returning a url that I would redirect to in the success handler, client side, but that seems smelly. What is the best practice for this sort of thing? Are there any alternative solutions that might be better?