« first day  last day (14 days later) » 

12:00 AM
Ah, so "inline a blank book record is added to the list" refers to the physical appearance
 
~/Books/Create is what I'm trying to avoid. Yes.
Even that I'm okay with if I can remain on the same view though.
 
I think you'll have to use JavaScript for this, since this is all client-based stuff
 
Should I be doing this client side some
 
Have a click on the "Add book" button inject some HTML in your page through JavaScript
 
Yup. Okay. I was thinking about it wrong.
 
12:04 AM
When they then add the information, you save it client-side in JS (in-memory or even browser-based storage)
and when they press the "Update library" button, you call your controller from Javascript
 
So then when it gets posted back, the new entries are there to be saved back.
 
you can get all the info from your form and add the new books
although I'm less certain about this (I'm not a clientside dev), I think that's about the workflow
 
Yeah. Okay. Guess I've gotta dust off those js skills. Thanks Jeroen.
 
when it arrives back at your server you will have your library with the updated books
no problem
 
For anyone stumbling on this in the future. Relevant.
stackoverflow.com/questions/16955101/how-to-add-items-to-mvc-model-in-javascript
0
Q: How to add items to MVC model in javascript?

efllesI would like to add items to a list in my model dynamically with java script. How can I make MVC bind the new item to the model? My models: public class Garage { public string Name{ get; set; } public string Location { get; set; } public IList<Car> Cars{ get; set; } } public class ...

There we go...
 

« first day  last day (14 days later) »