Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Index of Control Array


Message #1 by jared.j.pomranky@a... on Fri, 28 Jun 2002 15:22:37
Hi, I have created a dynamic form that will have multiple controls in a 
control array depending on the number of records shown for that day.  

The problem I am having is when there is only one record.  When I try to 
reference a text box with form.textBox[Index].value I get an error saying 
the object doesn't exist.  I know that this is because there is no control 
array but is there anything I can do to create a control array?  Something 
like set the index???

I don't really want to reference everything two different ways depending 
on the number of records and I don't want to write out a hidden set of 
controls.

Thanks for your help.

Jared

  Return to Index