:: Forum >>

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
Tuesday, April 1, 2008
Add -

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

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

This topic is archived.


Back to support forum

Forum search