Chapter 11. Tree View

In this chapter, we will be creating an Ajax-enabled tree view component. This component will accept an XML file that will define the structure of the data and render it as a tree view in a specified HTML element or the document body. The tree view will have expand and collapse functionality and custom icons for folders. Each folder will have the capability to add HTML-enabled content, which in our case will be used to produce hyperlinks. These hyperlinks can be used for just about anything—for example, they can be used for internal or external website navigation or they can be used in a web application, as we will be doing in the final sample with our email application that will display specific folders with hyperlinks ...

Get Ajax for Web Application Developers 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.