advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Download the code for this article
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.
Partners & Affiliates
advertisement
advertisement
advertisement
Average Rating: 4.3/5 | Rate this item | 18 users have rated this item.
 

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.  


advertisement
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?



Take advantage of JavaScript's polymorphic abilities and the solution is a snap.

  Next Page: JavaScript and Polymorphism


Page 1: IntroductionPage 4: Set up the Branch Object
Page 2: JavaScript and PolymorphismPage 5: Set up the Leaf Objects
Page 3: Set up the Tree ObjectPage 6: Build the Tree
Please rate this item (5=best)
 1  2  3  4  5
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs