Categories | Question details Back To List | ||||||||||||||||||||||||||||||||
itemtext not working properly I am attempting to style a node with simple HTML, like given in the same code: echo '<item id="1">'; echo '<itemtext><![CDATA[<font color="red">Label</font>]]></itemtext>'; echo '</item>'; However, this gives undefined as the label of the node in the tree. What am I doing wrong? I have the latest code from the site. Thanks! Answer posted by Support on Feb 18, 2008 08:38 Please try to use attached dhtmlxtree.js instead of original one Attachments (1)
Answer posted by Joe on Feb 18, 2008 16:59 That did not work either, still no coloring showing up on the tree. Answer posted by Support on Feb 19, 2008 03:54 Functionality works fine with latest version of js file. If problem still occurs for you - please send any kind of sample where it can be reconstructed. Attachments (1)
Answer posted by Joe on Feb 19, 2008 04:27 I am including the following js files, do I need to include any others? dhtmlxcommon.js dhtmlxtree.js Here are screenshots of what I am doing. I simplified it to a few line XML file with a top node and a child I want to style. Using the JS file attached I use tree.loadXML to open it. <?xml version="1.0" encoding="utf-8"?> <tree id="0"> <item text="Top" id="Top" open="open"> <item id="1"> <itemtext><![CDATA[<font color="red">Label</font>]]></itemtext> </item> </item> </tree> <div id="treebox"></div> tree=new dhtmlXTreeObject("treebox","100%","100%",0); tree.loadXML("<?=base_url()?>js/tree/test.xml"); Attachments (2)
Answer posted by Support on Feb 19, 2008 07:15 Please check full sample attached to post If you need updated js file from pro version - please contact us directly at support@dhtmlx.com and provide your ref. number. Attachments (1)
Answer posted by Joe on Feb 19, 2008 07:28 Whatever code you had in the source files worked great. Thank you. |