:: Forum >>

Popup render problem

Hi,
Here my simple code, when I click the combo I view this:

http://82.63.194.14/20060918/err_1.JPG
or
http://82.63.194.14/20060918/ok_1.JPG

and I don't know why?

<script src="runtime/lib/aw.js"></script>
<link href="runtime/styles/xp/aw.css" rel="stylesheet"></link>
<script>

    var obj = new AW.UI.Grid;

     obj.setCellText(function(i, j){return j + "." + i});
     obj.setColumnCount(10);
     obj.setRowCount(10);

     obj.setCellTemplate(new AW.Templates.Combo, 1);

     obj.setPopupTemplate(function(col, row){

     var grid = this;
     var list = new AW.UI.List;

     list.setItemText(["text1", "text2", "text3", "text4", "text5", "text6"]);
     list.setItemCount(6);

     list.onItemClicked = function(event, i){
     var text = this.getItemText(i);
     grid.setCellText(text, col, row);
     grid.setCellValue(text, col, row);
     grid.getCellTemplate(col, row).hidePopup();
     }

     return list;
     });

document.write(obj);
</script>

<body bgcolor="yellow">


</body>



thanks in advance,
Luca.
Luca
Monday, September 18, 2006

This topic is archived.


Back to support forum

Forum search