3.2.0

checkbox.onControlClicked

Does checkbox implement onControlClicked
Joe
December 24,
I'm not able to do this

var selection_mode_obj = new AW.UI.Checkbox;
selection_mode_obj.setControlText("Checkbox");
selection_mode_obj.setControlImage("fontsize");
selection_mode_obj.setControlValue("true");

selection_mode_obj.onControlClicked = function(event){
alert(this.getControlText());
}
Joe (again)
December 24,
I just to trigger an even when the checkbox is clicked:


var selection_mode_obj = new AW.UI.Checkbox;
selection_mode_obj.setControlText("Checkbox");
selection_mode_obj.setControlImage("fontsize");
selection_mode_obj.setControlValue("true");

selection_mode_obj.onControlClicked = function(){
alert('hello');
}

I am unable to get this to work, I see the checkbox and it sets the value properly but nothing happens when I click it (either on firefox or ie). Thanks for helping
Joe
December 27,
I don't know if onControlClicked is implemented for checkboxes, but onControlValueChanged does about the same thing, since the value changes whenever the control is clicked, no?

Example: http://jointandcommon.com/markets/lmp-five-min.html (to the left right above the grid)
David K
December 28,
Oops! Sorry for the multiple posts. I didn't see my post showing up for some reason.
David K
December 28,

This topic is archived.


Back to support forum