Categories | Question details Back To List | ||
Additional input field in dhtmlxtree item Hi, what is the best way to generate an input field? I tried it like this and it worked with the online-sample (Nodes manipulation -- Using HTML): ------- <?xml version="1.0" encoding="iso-8859-1"?> <tree id="0" radio="1"> <item open="1" text="<font color='red'>Books</font>" id="books" im0="tombs.gif" im1="tombs.gif" im2="iconSafe.gif" call="1" select="1"> <item text="Mystery Thrillers" id="mystery" open="1"> <item id="lb"> <itemtext><![CDATA[Huia]]></itemtext> <item text="All the Flowers Are Dying" id="lb_1"/> <item text="The Burglar on the Prowl" id="lb_2"/> <item text="The Plot Thickens" id="lb_3"/> <item text="Grifter's Game" id="lb_4"/> <item text="The Burglar Who Thought He Was Bogart" id="lb_5"/> ####### this line: <item id="8888"> <itemtext><![CDATA[Mail: <input name="email" type="text" id="email" value="3"/>]]></itemtext></item> ######## </item> </item></item> </tree> -------- What version/edition do I need to use it the same way on my server? PS: It is not necessary to save it asynchronos to server. Gerold Answer posted by Support on May 20, 2009 10:17 To be able to use itemtext tag you need to use PRO version of dhtmlxtree ( 1.3+ , it is pretty old feature ) The pro version necessary to use such way of syntax, but the concept of inline HTML will work with standard edition as well, text attribute can be used for the same task, just data need to be escaped correctly to not break XML rules. Answer posted by Gerold on May 20, 2009 11:17 Could you please give me a codeexample to integrate an input-field with the standard edition? Thanks again for your fast response! Answer posted by Support on May 21, 2009 01:27 Next line <item id="8888"> <itemtext><![CDATA[Mail: <input name="email" type="text" id="email" value="3"/>]]></itemtext></item> can be rewritten as <item id="8888" text="Mail: <input name='email' type='text' id='email' value='3'/>" /> < => < > => > |