Make your own free website on Tripod.com

orgchartGenerator6


This applet generates a searchable, hyperlinked organizational chart based on the data provided in a text file, ocgen6ex1.txt. This applet is a revised version to simplify the data format and is based on an improved layout algorithm. Please note that the indentations in this text file are optional and are shown for illustrating the hierarchy.

GO

 Usage:

GO

 

To handle a bug in IE3.0
To handle a bug in IE3.0

If you would like to test the applet locally, here is the zip file with all the files: ocgen6_try.zip. You can display 999 boxes with these files. Each head can have upto 4 tails. The registered version has no limits to the number of tails or boxes.

Data Text File Format

A typical text file woud be:

    n:"Jone Doe":"CEO":"jdoe@com.com":"555-1234":ffcc66
    url:"ceodoc.html"
        nn:"Jon Dowe":"Pres., Sales":8fbc8f
        url:""
        nn:"Jonn Doh":"Pres., Human Res.":8fbc8f
        url:""
which will be displayed as shown here. To add two subordinates to "Jon Dowe" use,
    n:"Jone Doe":"CEO":"jdoe@com.com":"555-1234":ffcc66
    url:"ceodoc.html"
        nn:"Jon Dowe":"Pres., Sales":8fbc8f
        url:""
          nnn:"Mari Marg":"Sales Assoc, Prod1"
          url:""
          nnn:"Merie Nurg":"Sales Assoc, Prod2"
          url:""
       nn:"Jonn Doh":"Pres., Human Res.":8fbc8f
       url:""

The data file consists of two kinds of lines.

  1. Lines starting with n, nn, etc., that specify the name,title of each employee, etc. The header field (n, nn, etc) specifies the hierarchy level of the chart. Example:

  2. n:"John Doe":"CEO":"jdoe@com.com":"555-1234":ff6666
    The first field (n) specifies that this is the first level. The fields 2 thru 4 are the ones that are actually drawn in the box. The last field (ff6666) specifies whether to "fill" the box with a color. The fill option can be disabled by either simply not specifying this hex color code in the data file or by setting the FILLCOLORBOX param to "no".

  3. Lines starting with url, that specify the URL of the document for the corresponding box. If there is no URL needed then specify a zero-length string ("").

 Home
Nalla Senthilnathan