Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by oVox on Mar 20, 2008 09:38
open dhtmlx forum
Tree CDATA

HI!, i need to create a Tree Node via Javascript, but it must have HTML content, i can do this when i load a XML but how can i solve this Scripting?

This is what im trying to do:

tree.setItemText( sid , "<![CDATA[<table><tr><td>TESTING</td></tr></table>]]>" );

Regards,
Answer posted by Support on Mar 20, 2008 10:00
Try to don't use CDATA tag and the following command should work correctly:

    tree.setItemText( sid , "<table><tr><td>TESTING</td></tr></table>" );