question?

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…

Probably it need to be a

dhtmlAjax.postSync("index.php","some_var="+encodeURI(document.getElementById('a').value));

last question?
must i insert
http://…/index.php?some_var=
in xml file?

thanks…

If you need define a link as item userdata, you could use this approach.