[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Free Shipping! (Case Problem)
The problem with using JavaScript for form verification is that
some browsers may not support JavaScript and others that do
may not have it enabled. So, imho, unless you know for sure that
your users will have JavaScript enabled on their browsers, you should
minimize on the use of JavaScript -- certainly avoid using it for form
verification.
my 0.02 dollars =)
Ezra Gilbert wrote:
> I think the simplest solution to this is to do it with some client side javascript. It'll save
> time and its simple to implement. Heres an example:
>
> <script language="JavaScript">
> function checkCaps()
> {
> temp=this.value;
> temp.toUpperCase();
> this.value=temp;
> }
> </script>
>
> <form name=simple>
> <input type=text name=test onChange=checkCaps(this)>
> </form>
>
> You can use that function for any fields you have in your form and make an equivelant function
> for changing to lower case. The benefits of this are that it gets run right whent he client is
> entering information and will change it automatically without the client having to hit submit and
> wait for a response.
>
> I suggest using JavaScript for all your form verification so that a user doesnt have to wait for
> a CGI response and then have to go back and fix the form and resubmit. (however, the CGI form
> checking should still be there as JavaScript is not secure and if someone wanted they can send
> you 'bad' information).
>
> Hope this helps,
> Ezra Gilbert
>
> Steve Cockwell wrote:
>
> > ****** message to minivend-users from Steve Cockwell <stevec@sierra.lazarus.ca> ******
> >
> > Hi folks,
> >
> > Is there any way in a minivend form to automatically convert to upper or
> > lower case - this is more postal code problems. K7V != k7v...
> >
> > I've temporarily duped all of the zone info and converted it to lower
> > case, but if someone were to type in:
> >
> > k7V8z9 (ie: Mixed case)
> >
> > they'd still end up with free shipping....
> >
> > .src
> > -
> > To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> > email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> > Archive of past messages: http://www.minivend.com/minivend/minivend-list