Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8024

Re: Data Validation Functions

From Gene Wirchenko <genew@ocis.net>
Newsgroups comp.lang.javascript
Subject Re: Data Validation Functions
Date 2011-11-04 16:11 -0700
Organization A noiseless patient Spider
Message-ID <40s8b7h19580acs8ui5v06510edldnegk1@4ax.com> (permalink)
References <keh8b71001v4v80k2ejo0557v6b31i8vqb@4ax.com> <4eb45ce4$0$28520$a8266bb1@newsreader.readnews.com> <rgo8b7p6vp7bhci6o85gkb8csh4s0tv4vi@4ax.com> <4eb469cf$0$2761$426a34cc@news.free.fr>

Show all headers | View raw


On Fri, 04 Nov 2011 23:40:12 +0100, Elegie <elegie@anonymous.invalid>
wrote:

>On 04/11/2011 23:11, Gene Wirchenko wrote :
>
>>> Make sure that you *also* validate it on the backend.
>>
>>       This point seems to stick with people.  Are there any spectacular
>> stories to tell?
>
><snip>
>
>Maybe not spectacular, by all too frequent stories. Most beginners think 
>that doing the validation in the client-side script suffices, and many 
>will even try to defend this approach by stating that their target 
>environment is controlled.

     Oh, do I know that!  I got my degree recently after many years in
the industry.  Some of my classmates had very weird ideas about how
computers and the industry work.

>You started participating in this group by stating that you were a 
>beginner (even though you had previous experience with other languages 
>and platforms), wanted to be informed about known pitfalls, so it seems 
>reasonable for regular posters to make the assumption that you actually 
>are a beginner, want to be informed about known pitfalls, and 
>consequently to provide you with appropriate advice and warnings :)

     *** You are doing exactly what I want.  Thank you. ***

     At some point, I am going to have something that works.  I hope
then it will get the evil eyeball from people.  ("Oh, you shouldn't
have.")  e.g. I found out today that, rather than using escape(), I
should use encodeURIComponent().  At this point, I would not have
figured that out myself.

     Many corrections are easy once one knows that a correction needs
to be made.

Sincerely,

Gene Wirchenko

     

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Data Validation Functions Gene Wirchenko <genew@ocis.net> - 2011-11-04 13:16 -0700
  Re: Data Validation Functions "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-04 22:42 +0200
    Re: Data Validation Functions Gene Wirchenko <genew@ocis.net> - 2011-11-04 14:04 -0700
  Re: Data Validation Functions Elegie <elegie@anonymous.invalid> - 2011-11-04 22:06 +0100
  Re: Data Validation Functions Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-04 21:45 +0000
    Re: Data Validation Functions Gene Wirchenko <genew@ocis.net> - 2011-11-04 15:11 -0700
      Re: Data Validation Functions Elegie <elegie@anonymous.invalid> - 2011-11-04 23:40 +0100
        Re: Data Validation Functions Gene Wirchenko <genew@ocis.net> - 2011-11-04 16:11 -0700
          Re: Data Validation Functions Tim Streater <timstreater@greenbee.net> - 2011-11-04 23:26 +0000

csiph-web