Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: form validation in an asp page!


Message #1 by "Eric Van Camp" <eric@a...> on Fri, 11 May 2001 00:10:42 +0200
Alle the forms in a document are in a collection So you can reference them
by their index, like this: document.forms[0].quantity
You can write a for loop that checks the value of the quantity field of
every form

Regards,

Gerhard Wentink

----- Original Message -----
From: "Eric Van Camp" <eric@a...>
To: "javascript" <javascript@p...>
Sent: Friday, May 11, 2001 12:22 AM
Subject: [javascript] form validation in an asp page!


> i have a page which is rendered by asp..resulting in a page with maximum
10
> forms in it.
> I each form there is a field called "quantity"...
> i want to check each time a user submits each separate form whether the
user
> putted in a value and not a character!
> can i do this using javascript without having to write the code maximum 10
> times...(cos each form has another name)..
>
>
> Met Vriendelijke groet,
> Eric Van Camp
> Atmilestone BVBA
> Trolieberg 74
> 3010 Kessel-lo
> Tel:016/35.69.99
> Fax:016/35.57.90
> eric@a... <mailto:eric@a...>
>
>
>  <http://www.atmilestone.be/>
>
>
>
>
>


  Return to Index