Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9750
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: eval() or What? |
| Date | 2011-12-28 17:42 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <9tgnf7ps2um6d8bubb8725kqlakckln11i@4ax.com> (permalink) |
| References | <fn8nf756jclubi6uu8510fcqjt57lhcd15@4ax.com> <9m1pc5F743U1@mid.uni-berlin.de> |
On Thu, 29 Dec 2011 01:08:37 +0100, Jake Jarvis
<pig_in_shoes@yahoo.com> wrote:
>On 29.12.2011 00:29, Gene Wirchenko wrote:
>> Dear JavaScripters:
>>
>> I am writing an object for handling browser-side field
>> presentation and validation. Two of the properties will have string
>> values of code to be executed in order to do validation. The code
>> could be arbitrary, but it will probably be a function call with
>> parameters.
><snip>
>
>Could you explain the step from 'writing an object for handling [...]
>presentation and validation' to 'will have string values of code to be
>executed in order to do validation'?
I am defining an object called FieldItem. Two of the properties
are ValidationBasic and ValidationExtra. Each of these will hold code
for validation.
My plan is to define many FieldItems and pick from these in
various pages to generate much of the DE code. Some of it is
validation code. (Yes, I will have server-side validation, too.)
I already have a basic proof-of-concept, but now, I have to patch
up a few weaknesses. My validation spec was formerly in the input
control; now, I want it in the FieldItem object.
Sincerely,
Gene Wirchenko
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
eval() or What? Gene Wirchenko <genew@ocis.net> - 2011-12-28 15:29 -0800
Re: eval() or What? Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-29 01:08 +0100
Re: eval() or What? Gene Wirchenko <genew@ocis.net> - 2011-12-28 17:42 -0800
Re: eval() or What? Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-29 22:39 +0100
Re: eval() or What? Gene Wirchenko <genew@ocis.net> - 2011-12-29 14:08 -0800
Re: eval() or What? Stefan Weiss <krewecherl@gmail.com> - 2011-12-31 00:17 +0100
Re: eval() or What? Dr J R Stockton <reply1152@merlyn.demon.co.uk> - 2011-12-29 19:57 +0000
csiph-web