|
Hi Guys,
This should not be an easy question, can you manage it? :)
I need a DHTML tabletree. In simple words it means
creating a table, where each of it's rows can hierarcicaly
expand/collapse, adding/removing hidden rows to/from the table,
with an indent.
It is fairly easy to accomplish this with one TD:
To represent children, just put a TABLE inside a TD,
with DIV, and put an A (ancor) with the suitable onclick() function in the TD itself. The TABLE will include all the TR's of the children of this node. The ids of the ancor and the DIV tag are similar (like, ID1 and kidsID1).
Now, in the needed case, we have to worry about:
1) Indentation of columns. Everything should look as a well layed-out table for the user.
2) No hard-coded values that determine the width of columns.
3) DIV can reside inside a TD, but not inside TABLE or TR,
as far as I know.
Like I said, a tough one, but if you know the answer - you are the master :)
10x,
Byron.
|
|
|
I think the question isn't very difficult, you can find the best answer when you search it in google!Good luck!
--------------------------------------- flash banner|logo maker|flash menu
|
|
|
|
|
|
|
|