:: Forum >>

How to set Combo object as readonly?

From This Code
var CBoxList = ["UC-0079", "UC-0080", "UC-0083", "CE-0072", "CE-0073"];
        var CBoxValue = ["U79", "U80", "U83", "C72", "C73"];
        <!-- Object ZONE -->
        var combo = new AW.UI.Combo;
        combo.setId("cbox");
        combo.setName("cbox");
        combo.setControlText("favorites Story : ");
        combo.setControlImage("favorites");
        combo.setItemText(CBoxList);
        combo.getContent('box/text').setAttribute('readonly','readonly');// -> Not work
        //combo.setItemImage(CBoxValue);
        combo.setSize(120,20);
        combo.setItemCount(CBoxList.length);
        combo.refresh();

I will edit where ? and now I use IE Version 7.0.5730.13
Vincent
Thursday, April 17, 2008
this code works ok -

obj.getContent("box/text").setAttribute("readOnly", true);
Alex (ActiveWidgets)
Thursday, April 17, 2008

This topic is archived.


Back to support forum

Forum search