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: Most common errors setting up tree control
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 6/25/2004 at 09:59 AM Reply With Quote
Most common errors setting up tree control


1. Unnecessary coma sign before closing brackets of items structure and template structure. The following sample represents such mistake:
--------------------------------
var TREE_ITEMS = [
['Test', 0, 0,
['Example']
], //This coma causes an IE error 'this.a_config.length is null or not an object'
];

var tree_tpl = {
....
'style_64':'t1ic', // mouseovered normal leaf caption style
'style_68':'t1ic', //This coma causes an IE error 'Expected identifier, string or number'
};
--------------------------------
2. Missed coma sign between items definitions or between settings of tree template. The following sample represents such mistake:
--------------------------------
var TREE_ITEMS = [
['Test', 0, 0,
['Example']// Missed coma causes incorrect tree representation.
['Example']
]
];
var tree_tpl = {
....
// icons - misc
'icon_e':'icons/empty.gif'// Missed coma causes an error 'Expected '}''
'icon_l':'icons/line.gif', // vertical line
....
};

--------------------------------
See also Tigra Tree Menu PRO debug utility
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