JavaScript - Looping question

by "Sara Winters" <saraw(at)fcs.net>

 Date:  Tue, 8 Aug 2000 11:14:44 -0700
 To:  <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Hello,

I am new to the languages list and am in need of some assistance.
I am using iHTML to display dynamically generate information on a website
from a database in which customers can enter information into a form.
The form is then auto emailed.

I am using JavaScript to validate certain fields of the form such as name,
address, etc,
which is working fine as these are static fields.  However, I now want to
validate the
dynamically generated quantity text boxes (the text boxes are dynamically
generated
when each product is displayed).

I know that I need to make a looping  function to accomplish this as the
dynamically generated infomation has it's own iHTML looping structure
which allows all active information in the the database to be displayed.
For the JavaScript
validation, I am wondering if I should use a "for" or "while" loop.

Has anyone ever had to do this or have any suggestions regarding the
advantages and/or
disadvantages of using "for" or "while"

Any help would be much appreciated,

Sara

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA