:: Forum >>
How to use CheckBox?
My.Templates.Checkbox = Active.System.Template.subclass();
My.Templates.Checkbox.create = function(){
var obj = this.prototype;
obj.setClass("templates","input");
var checkbox = new Active.HTML.INPUT;
checkbox.setClass("input","checkbox");
checkbox.setClass("checkbox",function(){return this.getColumnProperty("index");});
checkbox.setAttribute("type","checkbox");
var hidden = new Active.HTML.INPUT;
hidden.setAttribute("type","hidden");
var label = new Active.HTML.SPAN;
label.setClass("checkbox","label");
label.setContent("text", function() { return this.getItemProperty("text"); });
obj.setContent("checkbox", checkbox );
obj.setContent("hidden", hidden);
obj.setContent("label", label);
};
My.Templates.Checkbox.create();
Here is the template, but how the heck do you use it? I'm polling xml data and wanting to populate/change the value depending on the checkbox, but I can't find any examples on this.
Andrew
Thursday, September 23, 2004
I too am wondering the same thing.
Friday, September 24, 2004
Does anyone have an example of this in their program I could look at?
Andrew
Friday, October 1, 2004
what the heck ?
Monday, October 24, 2005
disable
Thursday, August 10, 2006
disable a combobox after click in radion button
Thursday, August 10, 2006
why not use
<input type="checkbox" onchange="javascript:runme();" name="checkbox" unchecked >
Wednesday, August 30, 2006
This topic is archived.
Back to support forum
Forum search