3.2.0

how to get value by http with CheckedList Object?

Form This Code. I will add some think of some function ?
<form method="get" action="#">
<script>
    var obj = new AW.UI.CheckedList;
    obj.setName("CBox");
    //var obj = new AW.UI.CheckedList;
    obj.setItemText(["Home", "Favorites", "Font size", "Search"]);
    obj.setItemImage(["home", "favorites", "fontsize", "search"]);
    obj.setItemCount(4);


    obj.onItemClicked = function(event, index){
        alert(this.getItemText(index));
        //alert(obj);
    }
    obj.onItemSelectedChanged = function(value, index){
        alert(value + " " + index);
    }
document.write(obj);
</script>
<input type="submit" />
</form>
Vincent
April 1,
Add -

obj.onSelectedItemsChanged = function(items){
    this.setControlValue(items.join(","));
}

obj.onControlValueChanged = function(){
    this.getContent("data").refresh();
}
Alex (ActiveWidgets)
April 2,

This topic is archived.

See also:


Back to support forum