I am trying to dynamically create radio buttons within a 
radiobuttongroup (which is dynamically being created).  This appears 
to work.  
But, when I try to get the data out of the dynamically created 
RadioButtonGroup, I get undefined.  I can tell that the group exists 
because I can see that path that the object is in.  If I try to do 
any properties on the Group I get undefined.  Even the ID property 
returns undefined.  

Does anyone have any experience with creating a dynamic 
RadioButtonGroup and how I would go about getting the data out?  

Here is a simplified version of my code with only one 
RadioButtonGroup that isn't being named dynamically, should be doing 
about the same thing though.

================================================

function appComp()
{       
        list = new Object();
        
        rbg = cont.createChild(RadioButtonGroup, undefined, 
{id: "group1"});
        list[0] = rbg;
        
        for (var i=0; i<10; i++)
        {
                var rb = cont.createChild(RadioButton);
                rb.groupName=rbg.id;
                rb.label=rb.groupName;
        }
        
        //This shows correctly
        sOutput += list[0].id;
        
}

function btnPush()
{
        //This shows me the path of the RadioButtonGroup
        sOutput += list[0];

        sOutput += list[0].id; // = undefined
        sOutput += list[0].selection.id; // = undefined
}






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to