Does any one knows about Family Tree using AJAX?
Does any one know about any script that will work like http://www.genoom.com family tree?
Or can you guys give me any ideas about the database table structure they used to make the tree like this?
And how are they displaying family member boxes and lines?
Please let me know ASAP.
[EDITED]
I have tried table structure like this:
-----------------------------------------------
TREE
-----------------------------------------------
ID | PARENTID | PARENT_RELATION | NAME
-----------------------------------------------
1 | 0 | | My Father
2 | 1 | Father | It is me
*tree(id int auto increment, parentid int, parent_relation varchar, name varchar)*
In first record it shows tree will starts with 'My Father' and then travers开发者_如何学JAVAe and will display 'It is me'. And whole thing I tried in PHP by using a recursive function. But I stuck when I am trying to display connecting lines between nodes.
you'd best reform your question to "is there a javascript framework for generating genealogy diagrams and datamapping", i'm on the lookout myself but didn't find anything good yet unless you use a general graphing framework like raphael but then you'r on your own with the modelling and datamapping etc.
EDIT: i have found this fiddle that looks very promising, it shows a way to connect two nodes with a simple model. http://jsfiddle.net/mking/2UJcZ/4/
I found also this similar solution using Go.js
http://gojs.net/latest/intro/usingModels.html
I don't know of any open-source or paid scripts that use Ajax. There are a few that use JavaScript that might give you some ideas.
The one framework I know of that is freely available and is quite comprehensive is Family.Show, which might give you some good ideas as to how to set everything up. However, it uses Windows Presentation Foundation and Silverlight. Several different genealogy programs have sprouted from the Family.Show framework.
精彩评论