Help Me, Please. What i wrong?
from this code :
Radio Button It's Not work On IE but on 'Firefox and Opera' Radio it work!
<SCRIPT>
var gobj = new AW.UI.Group;
gobj.setId("G1");
var objl = new AW.UI.Label;
objl.setControlText("Sex");
var itemTextArray = ["Male", "Female"];
var itemValueArray = ["M", "F"];
var radio = new AW.UI.Radio;
radio.setName("sex");
radio.setItemText(itemTextArray);
radio.setItemValue(itemValueArray);
radio.setItemCount(2);
//radio.setClass("flow", "inline");
//radio.setClass("flow", "horizontal");
radio.setSize(200,40);
var xxx = "<br>"+objl+" : "+radio;
gobj.setContent("object", xxx);
gobj.setSize(500,200);
gobj.setControlText("Group/Fieldset");
gobj.setControlImage("favorites");
gobj.refresh();
/*--------------- EVENT MODULE --------------------*/
radio.onSelectedItemsChanged = function(items){
var index = items[0]; // assume there is one selected item
var value = this.getItemValue(index);
radio.setControlValue(value);
}
// update hidden input tag - 'data' element
radio.onControlValueChanged = function(){
radio.getContent("data").refresh();
}
</SCRIPT>
Radio Button It's Not work On IE but on 'Firefox and Opera' Radio it work!
Vincent
April 1,