TopKatz
public text v1 · immutableTrying to build dynamic checkbox's - the array appears to be empty in fire bug!
// array var:
var groupArray = new Array();
//this is the response function:
function groupsObject(el, success, response){
groupArray = eval('(' + response.responseText + ')');
}
//this is the loop to build the box's:
for(var i;i<groupArray.length;i++){
form.add(
new Ext.form.Checkbox(
groupArray[i]
)
)
}
form.end(); // close the colu