In this chapter you learn how to create client-side components using the Microsoft AJAX Library. This implies working with elements of the page, registering events, creating controls and behaviors, and more. At the end of this chapter, you will have the thoeritical foundation of:
Working with DOM elements and events
Application object and page life cycle
Components, controls, and behaviors
As usual, Appendix A will serve as your reference for the classes and methods discussed. You won’t find much code in this chapter. Instead, Chapter 7 will put the concepts into practice through a detailed case study.
One of the problems developers face when writing client-side JavaScript code regards writing code that is compatible with all existing browsers. Internet Explorer in particular has historically raised the most problems because of its non-compliance with the W3C standards.
For example, to attach or detach an event handler for a particular...