Creating a Cross-Browser (DOM) Expandable Tree
by Volker Weber
As a user interface designer for Web applications, I find that there is a constant need (read: demand) for certain UI components across the board. The most commonly requested component is an expandable/collapsible tree, often referred to as an explorer tree (referring to its use in Microsoft Windows Explorer).
Previously, it could take a lot of time and effort to create a tree that could work in both Internet Explorer and Netscape Navigator. With recent improvements in Internet Explorer and Netscape, however, it is possible to make an expandable tree without needing any browser detection whatsoever.
This article will focus on building a JavaScript tree. The target browsers for this tree are Internet Explorer 5.0 and Netscape 6.1 (Netscape 6.0 had many bugs that could affect the proper display of the tree). This tree will be built with cross-browser code that works on both IE5 and NS6, so that the code requires no browser detection to work on these two browsers (note that if your users may still be using IE4 or NS4, you will need to do an additional browser detect to see if you can use the code in this article).
Comments
Recent comments
Ralf M Petter
on Foldershare, R.I.P. at 15:32
Jan Tietze
on Foldershare, R.I.P. at 14:12
Ole Saalmann
on Foldershare, R.I.P. at 13:33
Stefan Weigand
on Doc Scrubber cleans your Word document at 13:21
Doug Petrosky
on Apple TV: First impressions at 13:00
ursus schneider
on Apple TV: First impressions at 09:16
Armin Roth
on Doc Scrubber cleans your Word document at 08:56
Volker Weber
on Foldershare, R.I.P. at 08:28
Ralf M Petter
on Foldershare, R.I.P. at 08:10
Ralf M Petter
on Foldershare, R.I.P. at 08:09
Mariano Kamp
on Foldershare, R.I.P. at 07:58
Volker Weber
on Apple TV: First impressions at 06:48
Kevan Emmott
on Apple TV: First impressions at 04:44
Robert Dahlem
on Doc Scrubber cleans your Word document at 22:14
Andrew Pollack
on Jehovah at 20:11
John V. Keogh
on Apple TV: First impressions at 19:57
Jan Fuellemann
on Apple TV: First impressions at 19:22
Volker Weber
on Doc Scrubber cleans your Word document at 18:14
Michael Renner
on Doc Scrubber cleans your Word document at 17:01
Ben Poole
on Apple TV: First impressions at 15:05
Ben Poole
on Jehovah at 15:03
Chris Linfoot
on Doc Scrubber cleans your Word document at 14:50
Philipp Sury
on Apple TV: First impressions at 14:50
Tony S Lee
on Jehovah at 14:46
Felix Binsack
on Michael Sampson: "Hello, I'm an Angry PC" at 13:08




Post a comment