This article shows you one way to use object-oriented JavaScript programming applied to an HTML-based Tree control. Can you think of other ways? Do you think people are better off "rolling their own" solutions or using one of the available client-side JavaScript-based UI frameworks? Let us know in the web.dhtml.general discussion group.
Build an Object-Oriented Tree Control Using JavaScript
When you need to display hierarchical information in your Web pages, build this Explorer-like tree control by creating only three polymorphic JavaScript objects.
by Tom Duffy
November 8, 2002
n my last article, I demonstrated how to build an Explorer-like tree control using JavaScript. This month's installment focuses on converting the tree control to an object-oriented structure. Such a tree control should be both reusable and easily extended.
How do I build an Explorer-like tree control that is easily extended using object-oriented principles?
<
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!