| Author |
Message |
Loke
Joined: 31 May 2007 Posts: 2
|
Posted: Thu May 31, 2007 5:33 am Post subject: Perstistent state |
|
|
I have experimented a bit with the free version of JavaScript tree and have a three questions:
1) I would like the tree menu to stay open after that the visitor has made his selection. The rational for that is that it saves the visitor a lot of clicking when the tree is several levels deep. Can that behavior be achieved with the professional version?
2) I have put menus similar to the demo at http://javascript.cooldev.com/scripts/cooltree/demos/cool/ on several pages. If I clear the cache (to simulate a first time visitor) and load one of these pages I just see each entry as a horisontal line. After I reload the page the menu works fine. It seems the menu needs to be redrawn. Is there a refresh function I may call to avoid having to reload the page?
3) I want all nodes to be initially closed, so I use tree1.expandNode(); This works fine for all browsers, except that pesky MS IE (6.029 SP2), which sometimes opens the first node. Another IE bug? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu May 31, 2007 9:51 am Post subject: |
|
|
1. Yes, Pro supports this. Demo is here: http://javascript.cooldev.com/scripts/cooltree/demos/cookies/.
2. Quoting docs:
| Quote: | | This [initialization sequence with "new COOLjsTree(...)" inside] snippet must be placed somewhere in the HTML code, but not inside any containers other than <BODY> - this is very important. By not following this rule you'll get garbled tree shrunk into a single line. |
Please, check if this the case for you.
3. Remove or comment out all expandNode() calls. |
|
| Back to top |
|
 |
Loke
Joined: 31 May 2007 Posts: 2
|
Posted: Thu May 31, 2007 11:45 pm Post subject: |
|
|
1) OK. Then I will go for the pro version.
2) I believe that I have observed these guideline and I have got it working with Opera 9.10 (Win XP SP2) and IE 6.029 (Win XP SP2). However, Firefox 1.0.0.3 (Ubuntu and Win XP) and Konqueror 3.5.6 (Ubuntu) still show this behavior. Looks like a cache problem to me (I am probably wrong though..), as it works fine after that I have reloaded the page.
3) It works fine after I got rid of tree1.expandNode();
For the benefit of others: I had to close down and restart IE for it to work after the modification (cleaning out the cache didn't work). |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Fri Jun 01, 2007 7:34 am Post subject: |
|
|
| 2. Please, send me (javascript@cooldev.com) some code to reproduce the issue. |
|
| Back to top |
|
 |
|