Chapter 26. Working with Object Trees

Working with Object Trees

This chapter covers working with objects in a hierarchy using JavaScript. There are various applications for this. For example, you can have a folder tree like the one in Windows Explorer. In that application, you can navigate through a file directory system and open a directory by clicking a folder icon, as you saw in the document management application in Chapter 20, “Web-Based Document Management.” Other examples are an XML-based online help system and a table of contents for an online book, as described in Chapter 19, “XML-Based E-Books.”

When you work with objects in JavaScript, the array object is basically ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions 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.