Categories | Question details Back To List | ||
dhtmlxtree url userdata loading issue Per your online document: http://www.dhtmlx.com/docs/products/docsExplorer/index.shtml?node=dhtmlxtree&type=smpl I am interested in using your dhtmlxtree js components for creating an online bookmark. I tried to no avail loading an xml doc with a link e.g. <item text="another kenmore dryer problem - dryers - appliance repair talk - the appliance blog forums" id="another kenmore dryer problem - dryers - appliance repair talk - the appliance blog forums" im0="iconText.gif" im1="book_titel.gif" im2="book_titel.gif"> <userdata name="myurl">http://www.applianceblog.com/forums/view_topic.php?id=91&forum_id=3&jump_to=4913</userdata> </item> If I'm not mistaken, it turned out to be the url link is not XML well formed around where "forum_id=..." is located. Is there anyway to work about this? On another note, is there anyway to load an xml tree from a database string vs. an xml file? Please advise. Thanks. Answer posted by Support on Dec 18, 2007 02:19 Valid has few reserved chars ( & < > ) which need to be replaced with entities or included in CDATA so you code will be correct as <userdata name="myurl">http://www.applianceblog.com/forums/view_topic.php?id=91&forum_id=3&jump_to=4913</userdata> or <userdata name="myurl"><![CDATA[http://www.applianceblog.com/forums/view_topic.php?id=91&forum_id=3&jump_to=4913]]></userdata> >>On another note, is there anyway to load an xml tree from a database string vs. an xml file? Please advise. Thanks. Actually you need not static XML file, you can load data directly from server side url as mygrid.loadXML("some.php"); ---------------- some.php ----------------- <?php header("Content-type:text/xml"); .. connect to DB .. get necessary data .. output as XML Latest version of dhtmlxTree (1.6) supports loading from JSON/CVS formats |