PDA

View Full Version : Am I references this correctly?



chris24300
18 Mar 2011, 10:02 AM
Hi,

Basically I dynamically create fieldsets from my db and add them to my recipe panel, on each iteration I use


id: "recipe" + i

and within the items of the fieldset I have a text area used for comments which I assign

id: "textarea"

I want to save all the comments when the user is done with the set of recipes so am I doing this correctly?



// looping with i to recipestore.getCount()
var comment = this.recipePanel.findById("recipe"+i).findById("commentarea").getValue();


Thanks!