没有任何一个知道家谱使用AJAX? [英] Does any one knows about Family Tree using AJAX?

查看:120
本文介绍了没有任何一个知道家谱使用AJAX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何人知道这件事会像 http://www.genoom.com 家谱任何脚本?

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?

请让我知道ASAP项目。

Please let me know ASAP.

我已经试过表结构:

-----------------------------------------------
TREE
-----------------------------------------------
ID | PARENTID | PARENT_RELATION | NAME
-----------------------------------------------
1  | 0        |                 | My Father 
2  | 1        | Father          | It is me

*树(ID INT自动递增,PARENTID INT,parent_relation VARCHAR,名称为varchar)*

*tree(id int auto increment, parentid int, parent_relation varchar, name varchar)*

在第一个记录它显示树将开始与我的父亲,然后遍历并显示这就是我。而整个事情我想在PHP中使用递归函数。但我坚持,当我试图显示节点之间的连接线。

In first record it shows tree will starts with 'My Father' and then traverse 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.

推荐答案

你最好改你的问题有没有产生家谱图和datamapping一个JavaScript框架,我是在寻找自己,但没找到任何东西,除非你用一般的图形框架,比如拉斐尔还不错,但随后找你你自己的造型和datamapping等。

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.

编辑:我发现这提琴,看起来非常有前途的,它显示了一种方法来连接两个节点用一个简单的模型。 http://jsfiddle.net/mking/2UJcZ/4/

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/

我还发现使用Go.js这种类似的解决方案

I found also this similar solution using Go.js

http://gojs.net/latest/intro/usingModels.html

这篇关于没有任何一个知道家谱使用AJAX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆