Advice: Struggling with Model-View-Controller in JavaScript -
i trying better understanding of mvc. can't find content out there understand , can re-engineer better understand inner workings.
i understand model data (javascript objects or something), view html , controller browser.
is correct understanding? can point me simple, down , dirty example of mvc?
thanks in advance helpful input.
the mvc framework includes following components:
models. model objects parts of application implement logic application's data domain. often, model objects retrieve , store model state in database. example, product object might retrieve information database, operate on it, , write updated information products table in sql server database.in small applications, model conceptual separation instead of physical one. example, if application reads dataset , sends view, application not have physical model layer , associated classes. in case, dataset takes on role of model object.
views. views components display application's user interface (ui). typically, ui created model data. example edit view of products table displays text boxes, drop-down lists, , check boxes based on current state of product object.
controllers. controllers components handle user interaction, work model, , select view render displays ui. in mvc application, view displays information; controller handles , responds user input , interaction. example, controller handles query-string values, , passes these values model, in turn might use these values query database.
http://msdn.microsoft.com/en-us/library/dd381412(vs.98).aspx?ppud=4
Comments
Post a Comment