hi, guys.
Currently, I create a textarea and a popup.
Then , I bind popup to the textarea. when I click popup’s item, I hope to get this item’s value and pass back to the textarea. but I do not know how to get the popup’s item’s value.
Thanks in advanced.
The following is my code.
when I click popup, they even do not execute alert(“hello”);
[code]
<script src="../common/viewsources.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="../common/viewsources.css">
<script type="text/javascript" charset="utf-8">
dhx.ui({
rows:[{
view:"toolbar", type:"MainBar", elements:[{view:"textarea", inputHeight:'100',label: 'Menu', popup:"Menu1", inputWidth:200, align:"left"}]
}]
});
dhx.ui({
view:"popup",
id:"Menu1",
body:{
view:"list",
//url:"menu.xml",
data:[
{id:"grid_1",name:'shuzhan',email:"shuzhan1983@gmail.com"},
{id:"grid_2",name:'s',email:"s.com"},
{id:"grid_3",name:'h',email:"h.com"},
],
datatype:"json",
template:"#name#",
select:true,
y_count:3
}
}).hide();
$$("list").attachEvent("onafterselect",function(){
alert("hello");
});
$$("list").attachEvent("onitemclick",function(){
alert("hello");
});
</script>
</body>
[/code]