JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

keeping tree state from one page to another

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
Isegrim



Joined: 19 Sep 2003
Posts: 1

PostPosted: Fri Sep 19, 2003 9:18 am    Post subject: keeping tree state from one page to another Reply with quote

One question:

if I use cookies to store the tree state, than this state is only stored for this specific page.

But: how can I keep the tree state from one page to another?
Let's say I have two different pages. How can I show the same tree state on the second page (no frames!) when linking to it from the first page?

Ok, I could use a variable via GET method, but how can I get the actual tree state as a variable or array?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri May 07, 2004 7:27 am    Post subject: Reply with quote

By default, Pro version stores tree state for every unique combination "tree name - host". So, your trees must have same names.
Back to top
pagehosting4u



Joined: 10 Nov 2004
Posts: 7

PostPosted: Fri Nov 12, 2004 4:48 pm    Post subject: Reply with quote

I am having the same problem. I have Pro and the tree is called tree1 on all my pages. I have enabled save state. When I go to a page and expand a node and refresh the page, the node stays expanded. If I then click on one of the links to take me to a new page, the tree comes up collapse. Here is what I would like to see.

Page 1 tree:
Item1
....SubItem1
....SubItem2
....SubItem3
Item2
Item3

I now click on SubItem1
SubItem1 Page tree:
Item1
....SubItem1 This should be in selected state with selected style
....SubItem2
....SubItem3
Item2
Item3

This is common with most navigation menus. If I understand correctly, Pro version should handle this by default.
Any suggestions?
Thanks.
Rick
Back to top
pagehosting4u



Joined: 10 Nov 2004
Posts: 7

PostPosted: Mon Nov 15, 2004 5:29 pm    Post subject: Reply with quote

I think I have my problem solved. Working on other issues. I'll keep searching the forum.
Rick
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Nov 17, 2004 9:41 pm    Post subject: Reply with quote

Try the latest version of the script. In older versions there were some bugs with tree state saving.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1