JavaScript Tree java script tree menu dhtml tree navigation javascript tree view control node expand collapse javaswcript tree example free tree menu

PRODUCTS

JavaScript Projects

PHP Projects

Javascript Tools

SUPPORT

Standard vs PRO

FAQ

Contacts

Site Map

CODETHAT

Downloads

Users Testimonials

Our Customers

STUDIO   GRID   TABLE   MENU   TREE   XPBAR   HINT   EDITOR   TAB   FORM   CALENDAR   SCROLLER   SHOPPINGCART   TREEPHP   PACKER

User
Manual

Introduction    Item's look    Item's positioning    Items' actions    Using XML    IE-like style

Run-time item manipulation    HTML code as nodes text    Tree from the database

Mouse-over behaviour    Performance tips    What's new?    Tree reference    STD vs PRO

On-line
Builder

PRO

STD

123Guide    Examples    Download

Themes

CODETHATTREE USER MANUAL

Item Behavior

CodeThatTree allows you to specify an action that will be performed after item click event. It may be:

execution of JS code,

jump to URL (you should select an url, link target and item hint).

Structure of action object:

"action" : {
	"js" : " ",                // JS code - onClick event handler
		"js2" : " ",      // JS code - onDblClick event handler
		"jsover" : " ",   // JS code - onMouseOver event handler
		"jsout" : " ",    // JS code - onMouseOut event handler
	"url" : " ",               // go to URL
	"target" : " ",            // link target
	"title" : " ",             // item hint
}

Note that target can be defined globally. This may be useful when your tree is located on a frame and items should open pages on other frame.

If an item is a floder, i.e. non-leaf node, action is handeled as follows:

If mouse click is performed on folder icon the item is expanded plus if useIconLink tree property is true specified action is performed too.

If mouse click is performed on folder text the item is expanded and specified action is performed.

Example - Tree Actions

You can see an example and complete code here - Tree Actions Example [popup]

Read more about CodeThatTree >>

[ Home ]  [ Contacts ]  [ Site Map ]  [ News ]  [ Links ]  [ Downloads ]

[ Go Top ]

© CodeThat.com, 2003-2010
Design by XTLabs, Inc
Sponsored by Rocket Division Software, LTD.