This is a tree control I built for a school project.   It can contain
information that is as deep as you want to go..

http://www.eng.usf.edu/~mrosario/tree/xmlTree.xml

The XML looks like this....

<?xml-stylesheet type="text/xsl" href="xmlTree.xsl"?>
<tree>
    <treeNode label="Search Webs" onClick="">   
      <treeNode label="Yahoo"
onClick="window.open('http://www.yahoo.com')"/>         
      <treeNode label="Google"
onClick="window.open('http://www.google.com')"/>
      <treeNode label="Metacrawler"
onClick="window.open('http://www.metacrawler.com')"/>           
    </treeNode> 
    
    <treeNode label="News" onClick="">
      <treeNode label="CNN" onClick="window.open('http://www.cnn.com')"/>
      <treeNode label="Slashdot"
onClick="window.open('http://www.slashdot.org')"/>
      <treeNode label="Tampa Tribute"
onClick="window.open('www.tampatrib.com')"/>
    </treeNode> 
    
    <treeNode label="Cool Software" onClick="">
      <treeNode label="Freshmeat"
onClick="window.open('http://www.freshmeat.com')"/>
      <treeNode label="W3C" onClick="window.open('http://www.w3c.org')"/>
      <treeNode label="RedHat Linux"
onClick="window.open('http://www.redhat.com')"/>
      <treeNode label="Mozilla"
onClick="window.open('http://www.mozilla.org')"/>
    </treeNode> 
</tree>


Enjoy!! :)   

-----Original Message-----
From: Joe Sheble aka Wizaerd [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 1:36 PM
To: CF-Talk
Subject: RE: Hierarchial Display


Wat do you mean by a tree structure?

At 05:51 PM 1/8/01 +0000, you wrote:
>Why not get the custom tag to populate a tree structure instead of a
>query? Then you can write another recursive custom tag to display the
>data much more easily.
>
>-----Original Message-----
>From: Joe Sheble aka Wizaerd [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 08, 2001 5:41 PM
>To: CF-Talk
>Subject: Hierarchial Display
>
>
>I am able to retrieve hierarchial data just fine using a nested custom tag,
>and this tag populates a query for me with the data.  However, I'm having a
>real problem with trying to figure out how to display it.  Here's an
>example of the data:
>
>00000325 - Thomas - Graf -
>00000645 - Robert - Nudo - 00000325
>00001392 - Joseph - Sheble - 00000325
>00000937 - Kimberly - Walters - 00001392
>00000674 - Lisa - Perez - 00000937
>00001450 - Jerome - Horowitz - 00000325
>
>
>And I'd like it displayed thus:
>
>00000325 - Thomas - Graf -
>- 00000645 - Robert - Nudo - 00000325
>- 00001392 - Joseph - Sheble - 00000325
>---- 00000937 - Kimberly - Walters - 00001392
>-------- 00000674 - Lisa - Perez - 00000937
>- 00001450 - Jerome - Horowitz - 00000325
>
>However, there's no limit to the hierachy depth...  any ideas?
>
>
>Joseph E. Sheble
>[EMAIL PROTECTED]
>========================
>Wizaerd's Realm
>http://www.wizaerd.com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to