1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\r
4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
5 <title>Rico-Tree Control</title>
\r
7 <!-- #INCLUDE FILE = "LoadRicoClient.asp" -->
\r
9 <link href="../demo.css" type="text/css" rel="stylesheet" />
\r
11 <script type='text/javascript'>
\r
12 Rico.loadModule('Tree');
\r
16 Rico.onLoad( function() {
\r
17 tree1=new Rico.TreeControl("tree1", "CustTree.asp");
\r
19 tree1.returnValue=function(newVal) { Rico.$('TreeValue1').value=newVal; };
\r
20 Rico.eventBind('TreeButton1', 'click', Rico.eventHandle(window,'TreeClick1'));
\r
23 function TreeClick1(e) {
\r
24 if (Rico.visible(tree1.container)) {
\r
27 Rico.positionCtlOverIcon(tree1.container,Rico.$('TreeButton1'));
\r
38 <div id='explanation'>
\r
40 <script type='text/javascript'>
\r
41 document.write(Rico.Lib+' '+Rico.LibVersion);
\r
44 <p>This example demonstrates a basic, pop-up tree control where the tree nodes are loaded via AJAX.
\r
45 Only one item is selected from the tree at a time.
\r
46 Data is from the Northwind customer table.
\r
50 <p><button id='TreeButton1'>Show Tree</button>
\r
51 <p><input type='text' id='TreeValue1' size='6'> (selected customer id)
\r
53 <pre style='border:1px solid black;padding:3px;font-size:8pt;'>
\r
54 Rico.onLoad( function() {
\r
55 tree1=new Rico.TreeControl("tree1", "CustTree.asp");
\r
57 tree1.returnValue=function(newVal) { Rico.$('TreeValue1').value=newVal; };
\r