Hello Wagner, That worked..Thanks !
Yarlee On Jul 20, 8:42 pm, Wagner Nitsch <[email protected]> wrote: > Hi Yarlee. > > Try this: > > var namestr = view.children.item("xname" + ct); > var xxval = namestr.value; > debug.trace(xxval); > > Best Regards, > Wagner. > > > > On Mon, Jul 20, 2009 at 4:58 PM, Yarlee <[email protected]> wrote: > > > Hi, > > > I am generating some edit boxes dynamically based on the value in my > > options. Now I want to read these values in my main.js. I am not able > > to read them. Please find the example below > > > var editlbl=view.appendElement('<edit/>'); > > editlbl.height=16; > > editlbl.width=151; > > editlbl.x=74; > > editlbl.y=29+31*count; > > editlbl.color="#FFFFFF"; > > editlbl.background="#666666"; > > editlbl.name="xname"+ct; > > editlbl.onkeypress="xxxx("+ct+")"; > > debug.trace(editlbl.name+" is the name of the edit label"); > > > Now in my main.js I try to read like this > > > var namestr="xname"+ct+".value"; > > var xxval=namestr; > > > Now its printing xname.value whereas I want the value enetered in the > > edit box. > > I would appreciate some help in this regard. > > > Thanks, > > Yarlee --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
