Chapter 4. The page as an application

This chapter covers

  • Organizing complex user interface code
  • Using the Model-View-Controller pattern with JavaScript
  • Separating presentation from logic for maintainable code
  • Creating a flexible event-handling mode
  • Generating the user interface directly from your business objects

In chapters 1 and 2 we covered the basic principles of Ajax, from both a usability and a technology perspective. In chapter 3 we touched on the notion of creating maintainable code through refactoring and design patterns. In the examples that we’ve looked at so far, this may have seemed like overkill, but as we explore the subject of Ajax programming in more depth, they will prove themselves to be indispensable tools.

In this ...

Get Ajax in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.