TheServerSide.com Ajax applications can contain much more client-side code

来源:百度文库 编辑:神马文学网 时间:2024/04/30 21:52:00

October 2005
Discussion
than a standard web application, and hence benefit much more from the order that patterns and refactoring bring. Chapter 4 of Manning‘s Ajax in Action is the first of three chapters that apply refactoring and patterns to the client-side codebase. You won‘t see much of the asynchronous requests that give Ajax its name in this chapter, but the style of programming that we‘re discussing here is a direct consequence of being able to make asynchronous requests.
This chapter is about structuring Ajax applications. It provides examples of how the well-established Model-View-Controller pattern can be used to provide that structure. In this installment, the authors look at the Controller part of MVC as a way of organizing the event handling code in an Ajax client application, and at the introduction of a domain model into the JavaScript tier of code.
Download Ajax in Action - Chapter 4, Part 2
For more information on Ajax in Action go towww.manning.com/crane.
Biographies
Dave Crane holds degrees in Chemistry, Parallel Computing, and Ecological Economics from Edinburgh University in Scotland. He has worked with Internet technologies for the last ten years, primarily with Java technologies such as J2EE, Jini and Jython. He has pushed the boundaries of DHTML, and latterly Ajax, since 1997, in web site design, on early Digital TV set-top boxes and in home automation systems. Most recently, he has been senior developer for Smartstream Tchnologies Ltd., developing highly-interactive Ajax-based application frameworks that are currently in use in many tier-1 banks and financial institutions worldwide. Dave lives in Gloucestershire, UK.
Eric Pascarello graduated from Penn State University in 2002 with a B.S. in Mechanical Engineering. Since then Eric has been employed as a Senior Developer working with enterprise level applications in ASP.NET. Eric has also written "JavaScript: Your visual blueprint for dynamic Web pages (2nd ed)". Eric volunteers his free time as a moderator of the HTML and JavaScript forum at www.JavaRanch.com, a friendly online community dedicated to helping people learn Java and other web technologies. He lives in Laurel, MD.

October 2005
Discussion
Ajax applications can contain much more client-side code than a standard web application, and hence benefit much more from the order that patterns and refactoring bring. Chapter 4 of Manning‘s Ajax in Action is the first of three chapters that apply refactoring and patterns to the client-side codebase. You won‘t see much of the asynchronous requests that give Ajax its name in this chapter, but the style of programming that we‘re discussing here is a direct consequence of being able to make asynchronous requests.
This chapter is about structuring Ajax applications. It provides examples of how the well-established Model-View-Controller pattern can be used to provide that structure. In this installment, the authors look at the Controller part of MVC as a way of organizing the event handling code in an Ajax client application, and at the introduction of a domain model into the JavaScript tier of code.
Download Ajax in Action - Chapter 4, Part 2
For more information on Ajax in Action go towww.manning.com/crane.
Biographies
Dave Crane holds degrees in Chemistry, Parallel Computing, and Ecological Economics from Edinburgh University in Scotland. He has worked with Internet technologies for the last ten years, primarily with Java technologies such as J2EE, Jini and Jython. He has pushed the boundaries of DHTML, and latterly Ajax, since 1997, in web site design, on early Digital TV set-top boxes and in home automation systems. Most recently, he has been senior developer for Smartstream Tchnologies Ltd., developing highly-interactive Ajax-based application frameworks that are currently in use in many tier-1 banks and financial institutions worldwide. Dave lives in Gloucestershire, UK.
Eric Pascarello graduated from Penn State University in 2002 with a B.S. in Mechanical Engineering. Since then Eric has been employed as a Senior Developer working with enterprise level applications in ASP.NET. Eric has also written "JavaScript: Your visual blueprint for dynamic Web pages (2nd ed)". Eric volunteers his free time as a moderator of the HTML and JavaScript forum at www.JavaRanch.com, a friendly online community dedicated to helping people learn Java and other web technologies. He lives in Laurel, MD.
_xyz