Srikanth_Mopidevi <[EMAIL PROTECTED]> wrote:

>Hello Mariela,
>The best way to acheive this would be thru a Scripting Language (JavaScript
>for eg).  If you want to have more info, you can visit the site,
>http://www.Javascript.com.
>> ----------
>> From:         Mariela Figueroa[SMTP:[EMAIL PROTECTED]]
>> Reply To:     Mariela Figueroa
>> Sent:         Monday, April 19, 1999 8:24 PM
>> To:   [EMAIL PROTECTED]
>> Subject:      verifying data in a form
>>
>> Hello All!!
>>      I need the client machine to verify the data (numbers, strings) from
>> a
>> form that I have sent through my servlet. I don't want that verification
>> to
>> be in the server, so I know I can make it in the client, but I jusst
don't
>> know how???


If your site requires validation and you decide to use JavaScript for
validation, then you have just made JavaScript a requirement to use your
site. There are browsers out there that don't support JavaScript, and there
are people (such as myself) who like to disable JavaScript when the browser
allows it. For an example of one of the many reasons a user might want to
disable JavaScript, enable JavaScript on your browser and go to this page:

  http://www.hungry.com/~pere/

In my opinion, using JavaScript to make things prettier or easier to use is
fine, but requiring it really annoys people who don't have it.

Perhaps you could put all the validation in the server, and duplicate some
of the validation in JavaScript so users with JavaScript don't have to wait
until after form submission to realize they made a mistake.


Erik

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to