Re: validating forms without Javascript

by webguroo(at)tampabay.rr.com

 Date:  Fri, 29 Mar 2002 17:05:22 -0800
 To:  "seecurb" <seecurb(at)bigfoot.com>
 Cc:  hwg-basics(at)mail.hwg.org
 In-Reply-To:  computer
  todo: View Thread, Original
> How can it validate a form, if it is turned "off?"

Well, JS can't - but it does not prevent an order being placed.  I use 
it to be sure the customer has selected a size or color as an 
example.  If they don't select a size or color an alert tells them to 
select the size or color and the JS highlights the size or color area.

Some shopping carts provide a server side means of ensuring 
something like this has been selected.  I think this is what he was 
alluding to.

Before we went to this method, we were contacting 2 - 5 
customers a day because of this problem.  When the customer 
places the order from home at night and we are trying to contact 
them the next morning - it gets complicated and usually delays the 
order a day.  It also sucks up a lot of unneccessary man hours.  

We also use JS for information pop-ups.  They are self closing and 
allow the customer to remain on the main page.  They are coded in 
such a way that if JS is turned off, they will load the info page 
anyway, just not as a pop-up.

I cringe every time someone says they turn JS off.  There are lots 
of great legitimate uses for it.  It is the only client side scripting 
language that works on most browsers.  I think porn sites and 
creeps that create virii should all be taken out and shot.

Paul Wilson
webguroo(at)tampabay.rr.com

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.