Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Looking for cookie examples
mberkeland
Junior Member

Posts: 4
Registered: 6/9/2005
Member Is Offline
posted on 6/9/2005 at 06:39 AM Reply With Quote
Looking for cookie examples


I recently got Tigra Tree Pro, and it is working wonderfully for me. I am doing server-side generation of the tree based on mysql, and the examples were clear and concise - thanks! Now, I would like to use save/load of cookies to keep my tree state across refreshes. I have seen mention of it in the archives, and have read that save/load exist in the documentation, but I would really like to see a simple example of how to do this. Demo6 seems to behave this way, but I don't see in the code where it is doing "save" and "load". Thanks in advance!
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 6/9/2005 at 08:09 AM Reply With Quote

Can't understand your question exactly. Save/restore of tree states is performed automatically. Please describe your issue in other words.
View User's Profile View All Posts By User U2U Member
mberkeland
Junior Member

Posts: 4
Registered: 6/9/2005
Member Is Offline
posted on 6/9/2005 at 09:22 PM Reply With Quote

Ah, I see. I didn't realize that it was automatic.

I guess I must be doing something wrong then, or else the "automatic-ness" of state retention does not work exactly the same when doing server-side generation of the data structure. I have a mysql database that generates the data on the server side, and the tree items get set to various colors/icons depending on values (up/down, etc) in the database. I "refresh" this tree (refresh the page, thus regenerating the tree) every 90 seconds. Any "state" of the tree (expanded/contracted nodes, selected items) are lost on the refresh. Any idea what I could be doing wrong (given the limited amount of information in this post!)? Thanks in advance! By the way, I used the "php-database" add-on sample as the basis of what I am doing, so only the tables/fields of the database are really different: the tree_tpl and tree.css are the same.
View User's Profile View All Posts By User U2U Member
mberkeland
Junior Member

Posts: 4
Registered: 6/9/2005
Member Is Offline
posted on 6/9/2005 at 10:16 PM Reply With Quote

Oops! Found my problem.. d'oh!

I wanted, on the first time through, for the tree to be fully expanded, so I was setting "'st':1"... this, of course, would override the "saved state". Sorry for the false alarm!
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004