Re: Stupid Audit Tricks
- From: John G Harris <john@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Aug 2007 21:10:49 +0100
On Thu, 30 Aug 2007 at 22:55:48, in comp.lang.javascript, Lee wrote:
John G Harris said:
<snip>
<snip>Third, a better solution is to have a 12 character field and let any
redundant whitespace characters be discarded in the server.
Client-side audits are good when they make things easier for
the customer. It's probably easier for them to be told that
they left off a digit immediately, instead of waiting until
after they've submitted the form. By then they may have
closed whatever they're copying it from.
Note that I'm suggesting that the form field should be longer than the
longest Code value. In your case the copy-pasted Code would have gone to
the server unchanged and been accepted as correct. There is nothing
useful any client code could do. Adding unnecessary code to a web page
wastes developer time, adds yet more places where a bug could creep in,
and is at risk of suffering from variant browser problems.
John
--
John Harris
.
- Follow-Ups:
- Re: Stupid Audit Tricks
- From: Lee
- Re: Stupid Audit Tricks
- Prev by Date: window.open and IE
- Next by Date: Re: Dynamic Script Insertion Revisited
- Previous by thread: window.open and IE
- Next by thread: Re: Stupid Audit Tricks
- Index(es):
Relevant Pages
|
Loading