Updating a combo box from value changes in a dynatree

Updating a combo box from value changes in a dynatree

hi
I have a jsp page and a java script page, the jsp page is having a dynatree and a drop down box. they are integrated as a chain element. if we select some value in dynatree, the drop down box will be enabled and populated with value from database, data will be a Map.

now, the java script page holds all the scripts I am using in jsp page. the basic working is like this. when i select a node from dynatree, I should get an ID, using it I will populate the drop down box. I am using the idPrefix to uniquely identify each node and its children. but I am unable to think of a way to seperate the node ID, which I believe will be the position number of the node.

Then, I have to update the data from java script page to jsp page. but as far as I know, java script doesn't support Map I am stuck up,I am unable to think of some logic to get this ID from dynatree and fill this drop down box by calling a method in java script page.

Is there a way to do this!