Board Logo

How to keep tree state across multiple http requests ?
cwele - 9/6/2004 at 12:54 PM

Hi all,

is this possible to keep state (in the sense of expanded/collapsed nodes) of tree
menu between two http request ?

For example, I have the following situation:
in the Java servlet context, I have one attribute, "productTree" (String), which contains
tree items, and looks like:

var TREE_ITEMS = [
['Level 0 Item 1', null,
['Level 1 Item 0', 'another.html'],
['Level 1 Item 1', 0,
['Level 2 Item 0'],
['Level 2 Item 1', 0],
]
['Level 1 Item 2'],
['Level 1 Item 3'],
]
]

- Next, I have one .jps page, which calls tigra tree menu script, in the
following waY:

<script language="JavaScript" src="tree.js"></script>
<script language="JavaScript">
<%
out.println(getServletContext().getAttribute("productTree"));
%>
</SCRIPT>
<script language="JavaScript" src="tree_tpl.js"></script>
<script language="JavaScript">
<!--
new tree (TREE_ITEMS, tree_tpl);
//-->
</script>

- then user expand/collapse some nodes, and finally, choose, for example,
link to the 'another.html'.Thus, ahother.html displayed, but my tree
appears again as first time. However, I want to keep state of my tree,
in the same way as user expand/collapse him

- Can I achieve this goal with tigra tree PRO ?
And (MORE IMPORTANT) HOW ?

I found that Item Object haves save() & load() methods, but I donot know
how to use them.

- And finnaly yet another question: I want to buy tigra tree menu PRO
with regular license. I found that "To finalize registration process owner
of the script license should provide SoftComplex Inc. with domain name which license is associated with."
But I do not know (at this time) domain name, to associate license with domain.
Can I simply buy this product, use script for my own (non-commercial) purposes,
and later register him ?


tigra - 9/6/2004 at 03:23 PM

Yes, Tigra Tree Menu PRO supports state maintenance across the pages so open/close and selection will reload on new page as visitor browse the tree.

Regarding registration procedure: yes you can do that


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/