Re: Stupid Audit Tricks



On Thu, 30 Aug 2007 at 22:55:48, in comp.lang.javascript, Lee wrote:
John G Harris said:

<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.
<snip>

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
.



Relevant Pages

  • Re: Another SQL Server Question
    ... The biggest thing is for the WHERE clause to be executed on the server because ... It is rare for a query to not work at all after moving the tables to ODBC links. ... FROM (LU_Panel INNER JOIN (LU_Crew INNER JOIN (LU_Shift INNER JOIN ... The reference in the SELECT statement to the "Datespan" form field on ...
    (comp.databases.ms-access)
  • Re: Page context
    ... I'd also like to be able to write a function on one web server that "calls" a function on another web-server and have it be able to return. ... If I use session, I'm going to have to move ... > then you're pretty much stuck using either the URL or a form field. ... The Edit page may use the Context.Handler ...
    (microsoft.public.dotnet.framework)
  • Re: Saving dynamically created data on client side?
    ... I assemble the data in JS in a form field. ... server CGI which immediately returns it with Content-type & Content- ... client-side script support at all, so that your application does not break ... Anyone who slaps a 'this page is best viewed with Browser X' label on ...
    (comp.lang.javascript)
  • Re: form confirmation emails are truncated
    ... If the email is truncated after 1 line it is usually because of duplicate or bad form field names ... The server does not need the FP client software installed ... | I have installed on my web server all officeXp updates sp3 included that update had available. ... | frontpage is not installed on the web server only 2002 server extensions ...
    (microsoft.public.frontpage.extensions.windowsnt)

Loading