Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by bluefish on Jun 07, 2007 11:06
open dhtmlx forum
Help me for the hyperlink in dhtmlTree

How can i click a children link to open a url?
Answer posted on Jun 07, 2007 14:27
There are two ways

a) set onclick handler and make any action on click

    tree.attachEvent("onClick",function(id){
       //any onclick reaction here
       window.open("some.php?for="+id);
    });

b) provide native link as part of data
In XML
    <item id='s1' text='&lt;a href="some_url"&gt;Some text&lt;/a&gt;' />

This is a normal <A> tag, just escaped for HTML

Answer posted by Darya (Support) on Dec 09, 2014 09:53

Not much can be said in addition to the reply above, but you also can check cross browser menu and ajax grid component and find out what we have probably missed in our explanation.