Aquileo | Recent changes to Project JSD Validatorhttps://sourceforge.net/p/jsdvalidator/2013-01-22T20:50:00.251000ZRecent changes to Project JSD ValidatorAquileo | WikiPage Home modified by Mark Homans2013-01-22T20:50:00.251000Z2013-01-22T20:50:00.251000ZMark Homanshttps://sourceforge.net/u/markhomans/https://sourceforge.net443626005ab87fe22e1b2a2abc80826678488341<div class="markdown_content"><pre>--- v3 +++ v4 @@ -1,4 +1,7 @@ JSD Validator +------------- + +http://www.build-software.nl/JSDValidator/ JSD stands for Javascript Schema Definition. It is used to define and validate Javascript variables/objects. @@ -22,4 +25,3 @@ console.log(jsd_validator.Error); } - </pre> </div>Aquileo | WikiPage Home modified by Mark Homans2013-01-15T21:13:10.655000Z2013-01-15T21:13:10.655000ZMark Homanshttps://sourceforge.net/u/markhomans/https://sourceforge.net5de40c058f23856da0ddc6b135fee455bb4c55f5<div class="markdown_content"><pre>--- v2 +++ v3 @@ -1,3 +1,25 @@ JSD Validator JSD stands for Javascript Schema Definition. It is used to define and validate Javascript variables/objects. + +The JSD Validator takes the JSD Schema and validates any given input. + +A basic example: + + #!javascript + var jsd_schema = { Type: "String", MaxLength: 10 }; + var jsd_validator = new JSDValidator({Schema: jsd_schema }); + + var my_string = "Test if this string is at least 10 chars"; + + if(jsd_validator.Validate(my_string)) + { + //do something with my_string + } + else + { + //the string did not validate + console.log(jsd_validator.Error); + } + + </pre> </div>Aquileo | WikiPage Home modified by Mark Homans2013-01-15T20:53:44.864000Z2013-01-15T20:53:44.864000ZMark Homanshttps://sourceforge.net/u/markhomans/https://sourceforge.net2d8c280c7f21dd57344b3dacbb1423dd20f8f8e2<div class="markdown_content"><pre>--- v1 +++ v2 @@ -1,8 +1,3 @@ -Welcome to your wiki! +JSD Validator -This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage]. - -The wiki uses [Markdown](/p/jsdvalidator/wiki/markdown_syntax/) syntax. - -[[project_admins]] -[[download_button]] +JSD stands for Javascript Schema Definition. It is used to define and validate Javascript variables/objects. </pre> </div>Aquileo | WikiPage Home modified by Mark Homans2013-01-15T20:16:51.080000Z2013-01-15T20:16:51.080000ZMark Homanshttps://sourceforge.net/u/markhomans/https://sourceforge.net4987f0f3baca626d9b787f68f0449c0d19781359<div class="markdown_content"><p>Welcome to your wiki!</p> <p>This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: <a class="alink" href="SamplePage">[SamplePage]</a>.</p> <p>The wiki uses <a class="" href="/p/jsdvalidator/wiki/markdown_syntax/">Markdown</a> syntax.</p> <p><a href="/u/markhomans/">Mark Homans</a><br /><br /> <span class="download-button-50f5b93204161f7a6082e6a1" style="margin-bottom: 1em; display: block;"></span></p></div>