Categories | Question details Back To List | ||
init problem: with html and xml Just a litle modified code from your samples. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title>Untitled Document</title> <link rel="stylesheet" type="text/css" href="/js/dhtmlx/dhtmlxtree.css"> <script src="/js/dhtmlx/dhtmlxcommon.js"></script> <script src="/js/dhtmlx/dhtmlxtree.js"></script> <script src="/js/dhtmlx/ext/dhtmlxtree_start.js"></script> </head> <body> <div id="tt" style="width:250px; height:218px;overflow:auto;" setImagePath="/js/dhtmlx/imgs/"> <ul> <li>Root</li> <ul> <li>Child1 </li> <li>Child2</li> <li><b>Bold</b> <i>Italic</i></li> </ul> </li> </ul> </div> <script> var q = dhtmlXTreeFromHTML('tt'); </script> </body> </html> After loading I see the only {leaf.gif} Root - thats all. Answer posted by Support on Nov 19, 2008 01:52 Instead of <ul> <li>Root</li> <ul> <li>Child1 you need to have <ul> <li>Root <ul> <li>Child1 |