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

Website Templates

SUPPORT

Standard vs PRO

FAQ

Forum

Contacts

Site Map

CODETHAT

Sales & Prices

Downloads

Users Testimonials

Affiliate registration

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

Order PRO Now    Themes

CODETHATTREE USER MANUAL

HTML Code as Nodes' Text

With CodeThatTree you can include almost any HTML code as nodes text. It can be

Simple form for login request.

Big form for user profile completion.

Any images that you can't describe as simple node's image. You can build it in the table.

Small or large part of formatted text with any text styles.

Frames and so on.

To build HTML code in tree nodes use the constraction like this:

{
	"text" : "Form example",
	"menu" :
	{
		"items" :
		[ {
			"text" :
			'<form action="javascript:alert(\'Submitted\');" method="get">'
			 + '<table width="300" height="200" cellspacing="2" '
			 + 'cellpadding="2" border="0" bgcolor="#EEEEEE">'
			 + '<tr><td class=tableheadleft width="200">Address 1</td>'
			 + '<td><input type="text"/></td></tr>'
			 + '<tr><td class=tableheadleft >Address 2</td>'
			 + '<td><input type="text"></td></tr>'
			 + '<tr><td class=tableheadleft >City</td>'
			 + '<td><input type="text"></td></tr>'
			 + '<tr><td class=tableheadleft >Region</td>'
			 + '<td><input type="text"></td></tr>'
			 + '<tr><td class=tableheadleft >Country</td>'
			 + '<td><input type="text"></td></tr>'
			 + '<tr><td class=tableheadleft >Postcode</td>'
			 + '<td><input type="text"></td></tr>'
			 + '<tr><td colspan=2 align=center>'
			 + '<input type="submit" value="Submit">&nbsp;'
			 + '<input type="reset" value="Reset"></td></tr>'
			 + '</tr></table></form>',
			"style" :
			{
				"imgitem" : "img/empty.gif", "form" : true
			}
		} ]
	}
}

Example - HTML code as nodes' text

You can see an example and complete code here - HTML code as nodes' text [popup]

Read more about CodeThatTree >>

[ Home ]  [ Forum ]  [ Contacts ]  [ Site Map ]  [ News ]  [ Links ]  [ Sales & Prices ]  [ Downloads ]

[ Go Top ]

© CodeThat.com, 2003-2008
Design by XTLabs, Inc.