In comp.lang.javascript message <fn8nf756jclubi6uu8510fcqjt57lhcd15@4ax.
com>, Wed, 28 Dec 2011 15:29:43, Gene Wirchenko <> posted:
> 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.
Already done. Read my js-valid.htm, particularly #VFF - after which it
is possible that you will no longer need to eval strings.
If you were thinking of writing ... onclick="eval(...)" consider
instead, from my js-quick.htm,
function remoteEval_(St) { return eval(St) /* RC */ }
An RC may be able to explain why that is better.
Aside: In <http://www.merlyn.demon.co.uk/programs/32-bit/>,
seakfyle needs testing.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
|