Re: [qooxdoo-devel] Dynamic Form Elements created in a For loop

2008-01-16 Thread Aaron Cooper
Perfect Steven, thanks very much Steven M. Cherry wrote: > > You could use an array/object to hold all of your fields: > > var field_array = []; > > for(var i=1; i<=total_field_sets; i++){ > ... > var field = new ftmDataEntryTextfield(...); > if(i<=25){ > ... >

Re: [qooxdoo-devel] Dynamic Form Elements created in a For loop

2008-01-16 Thread Steven M. Cherry
You could use an array/object to hold all of your fields: var field_array = []; for(var i=1; i<=total_field_sets; i++){ ... var field = new ftmDataEntryTextfield(...); if(i<=25){ ... field.setLeft(left_col_booking_ref_x); spl

[qooxdoo-devel] Dynamic Form Elements created in a For loop

2008-01-16 Thread Aaron Cooper
Hi there, I've been playing with this for a day, and the form actually displays correctly, but I am unable to access each new field at a later stage for populating with data in another loop. What I have is a form where the user can insert up to 50 passenger names. Rather than define and add each