The “AJAX Components” sample chapter provided here offers a look at how you can build an AJAX user-interface component for use in a web application and examines the differences between an imperative and declarative approach. It also presents the caveats of a declarative approach, while providing a complete example of building an AJAX-based, data-grid component.
Download this sample chapter in PDF format (434 KB).
Reproduced from Enterprise AJAX: Strategies for Building High Performance Web Applications by permission of Prentice Hall. ISBN-13: 9780132242066/ISBN-10: 0132242060, copyright 2008. All rights reserved.