Hi, i use dhtmlxtree with leaves coming up as record from db with xml.
The leaf id and some other values pass with hidden html elements ,
post them with submit button , and get them to a query to db.query’s conclussion is in the same page .
now i want the leaf to be hyperlink to the same page (index.php) and change the db conclussion depnded on id.
i use event handler like this:
tree.setOnclickhandler(test);
function test(id)
{
document.getElementById(‘a’).value=tree.getSelectedItemId();
dhtmlAjax.postSync(“index.php”,encodeURI( document.getElementById(‘a’).value));
}
However, something is going wrong.
Please can anyone help me!
Gratefully k…