Rank: Member
Groups: Member
Joined: 5/20/2004(UTC) Posts: 2
|
Is tracking possible in deeptree 2.0 ? I've made some changes to the script, and added an data loading from db with php, but can't think of how to get tracking working. I mean if user navigates throught pages, and doesn't click on tree, how to keep tree synced to pages. One way it is to do toc sync everytime page loads, but that is kind of stupid, because tree would redraw itself everytime.
Any clues/ideas/hints ?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Deep Tree 2.0 doesn't support tracking, but we can do it following way. First of all we need to handle onload event of frame, where the content is loaded, in order to know that user navigates to other page. The we need to get new url of content frame and check whether node linking to this url is already loaded to tree. If yes then expand and select this tree node. If node with such url isn't loaded then we should make resync.
|
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/20/2004(UTC) Posts: 2
|
ghm ok lets say user goes deeper into the tree from the begining, using links in the web page, so the tree won't be loaded, so most of the time we will need resync, if i got your idea right. One thing todo ( maybe ) is that each time to load not just current tree, but one level deeper and then try to expand if user navigates there.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.