Monthly Archives: April 2012

In a previous post I described the benefits of MVP architecture (you can see this post). Now I will try to explain how to implement that design pattern, inspired from Google’s GWT, with JavaScript.

I would assume, for this demo, that you are familiar with the basics of jQuery.

What is MVP?

Model-View-Presenter is a design pattern which separates the code for a specific widget/functionality to three sections:


In which the data model for the widget is defined.


In which the logic behind the UI is handled, with UI events, data visualization and other UI centric logic.


Where the logic behind the functionality of the widgets rests, such as data manipulation, data storing and loading, application events, etc…

Read More