:: Forum >>

checkbox.onControlClicked

Does checkbox implement onControlClicked
Joe
Sunday, December 24, 2006
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)
Sunday, December 24, 2006
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
Wednesday, December 27, 2006
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
Thursday, December 28, 2006
Oops! Sorry for the multiple posts. I didn't see my post showing up for some reason.
David K
Thursday, December 28, 2006

This topic is archived.


Back to support forum

Forum search