All pastes #460991 Raw Edit

TopKatz

public text v1 · immutable
#460991 ·published 2007-04-27 13:17 UTC
rendered paste body
Trying 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