473,396 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

generate tree structure using database

I'm trying to develop a tree structure using javascript. The node values of
the tree are generating from a mysql table depending on login. The tree
structure contains 3 sub levels.

I developed static HTML tree using http://www.treeview.net. now i need to
generate this tree dynamically.

Can any one has code for this?

Jul 23 '05 #1
1 7135
"Srihari" <sr***********@yahoo.com> wrote in message
news:81******************************@localhost.ta lkaboutprogramming.com...
I'm trying to develop a tree structure using javascript. The node values
of
the tree are generating from a mysql table depending on login. The tree
structure contains 3 sub levels.

I developed static HTML tree using http://www.treeview.net. now i need to
generate this tree dynamically.

Can any one has code for this?

----- Original Message -----
From: "Srihari" <sr***********@yahoo.com>
Newsgroups: comp.lang.javascript
Sent: Sunday, September 12, 2004 4:41 PM
Subject: generate tree structure using database

I'm trying to develop a tree structure using javascript. The node values
of
the tree are generating from a mysql table depending on login. The tree
structure contains 3 sub levels.

I developed static HTML tree using http://www.treeview.net. now i need to
generate this tree dynamically.

Can any one has code for this?


Hi there, it depends on the format of your data I should imagine, it's quiet
easy to calculate, for instance, the x and y co-ordinates of your elements
as long as the data is related in some way. That's what I do for an
organisation chart at http://camshag.co.uk/svg/NHSTrust/index.html It's a
simple little algorithm... but then again it did take me 6 weeks to figure
it out ;-)
If that doesn't float you're boat then there are commercial javascript
solutions which'll organise data from a database... have a good google!
Cheers,
Dom
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Johnson | last post by:
Been banging my head on this for two days now. Hope someone can help! My test program below is in the form of a single JSP, with a Node class build in. (All the coded needed to run is below.) ...
7
by: Casper | last post by:
In scanning a drive and comparing file content, I need to remember filepaths to every single file I encounter so I can take actions on certain files later on. Rather than having a huge list...
12
by: pillepop2003 | last post by:
Hey! Can anyone give me a hint, how this problem is best implemented: I have a table of users (see below), where every user has one "superior user" (= parent node), this should be a fully...
4
by: Robin Tucker | last post by:
Hi, I'm currently implementing a database with a tree structure in a table. The nodes in the tree are stored as records with a column called "Parent". The root of the tree has a "NULL" parent....
4
by: Sasha | last post by:
Hi everyone, I would like to hear your opinions about a design solution I am contemplating. The problem I am following: Write an editor for a data structure that is recursive in nature. In...
10
by: Will Honea | last post by:
I have a data set which I need to analyze but I am having a problem figuring out a structure for the database - or whether there are better ways of attacking the problem. The base data set is a...
1
by: hmoundekar | last post by:
actually i want to generate a tree structure on client side, the application is simple web based, and need to display the data extracted from the database to client in tree structure. but the problem...
15
lwwhite
by: lwwhite | last post by:
I'm not sure if this discussion is a better fit for the Access or XML forum and I don't want to double-post, so I'm starting in Access because you've been so helpful to me here. I am preparing a...
7
by: PaowZ | last post by:
Hi there! I'm facing an issue concerning tree data structure in php. In others languages, I just need to create a root node which I bind pointers of instances representing others nodes. But I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.