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: How to use save method
ThonyJ
Junior Member

Posts: 8
Registered: 10/1/2004
Member Is Offline
posted on 9/12/2005 at 08:11 AM Reply With Quote
How to use save method


How do I use the save method for an object?

When I open (toggle) a node in the tree and klick on a link the tre get closed.
If I open the node again and klick on a link then te node is still open as it should.

To solve this problem I tried usin the save method after the toggle method but I didn't get it to work.

Here is my code:

function onItemSelectHandler(o_item) {
if (o_item.a_config[3] && !o_item.a_config[1]) {
o_item.o_root.toggle(o_item.n_id);
o_item.save();
return false;
}
return true;
}
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/12/2005 at 11:43 AM Reply With Quote

Save method is called within default toggle method. If after link processing tree control does not preserve previous state, you need to check whether tree states are accessible at the URL. To share the tree states through whole domain you need to define 'cookie_ext' key at tree_tpl var (tree_tpl.js):
'cookie_ext':'path=/;'
View User's Profile View All Posts By User U2U Member
ThonyJ
Junior Member

Posts: 8
Registered: 10/1/2004
Member Is Offline
posted on 9/21/2005 at 03:26 PM Reply With Quote

How do I test that states are accessible at the URL.
View User's Profile View All Posts By User U2U Member
rock
Moderator

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

Please refer to our Customer Care System
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Tree Menu
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   
Tigra Tree Menu PRO
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