Re: JavaScript - Looping question

by "Paul Varese" <varese(at)home.com>

 Date:  Wed, 9 Aug 2000 05:54:11 -0700
 To:  "Sara Winters" <saraw(at)fcs.net>,
<hwg-languages(at)hwg.org>
 References:  fcs
  todo: View Thread, Original
Please tell me what iHTML is!!

Thanks (I hate when I don't know about new things!)

Paul Varese
varese(at)home.com


----- Original Message -----
From: "Sara Winters" <saraw(at)fcs.net>
To: <hwg-languages(at)hwg.org>
Sent: Tuesday, August 08, 2000 11:14 AM
Subject: JavaScript - Looping question


> 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