Discussion:
[nodejs] Form validation in nodejs
Dhanjiv Pandey
2018-01-05 06:44:22 UTC
Permalink
Hello,

I am nodejs beginner and i am trying to form validation in nodejs but not
success, please help me how i will do this i am using Ajax for the form
submision
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vishwadeep Kapoor
2018-01-06 12:20:25 UTC
Permalink
*For the server side*
package: https://github.com/caolan/forms
can be used for for express.js
Post by Dhanjiv Pandey
Hello,
I am nodejs beginner and i am trying to form validation in nodejs but not
success, please help me how i will do this i am using Ajax for the form
submision
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/5f3d8856-c6d2-41d4-a965-63b1c938f0a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Will Hoover
2018-01-08 12:20:52 UTC
Permalink
https://github.com/hapijs/joi



From: ***@googlegroups.com [mailto:***@googlegroups.com] On Behalf Of Dhanjiv Pandey
Sent: Friday, January 05, 2018 1:44 AM
To: nodejs <***@googlegroups.com>
Subject: [nodejs] Form validation in nodejs



Hello,

I am nodejs beginner and i am trying to form validation in nodejs but not success, please help me how i will do this i am using Ajax for the form submision
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com <mailto:nodejs+***@googlegroups.com> .
To post to this group, send email to ***@googlegroups.com <mailto:***@googlegroups.com> .
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com <https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com?utm_medium=email&utm_source=footer> .
For more options, visit https://groups.google.com/d/optout.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/003601d3887b%2420a86c60%2461f94520%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Anuj Gupta
2018-09-05 08:22:16 UTC
Permalink
I have written this blog to help you out with it

https://medium.com/@anujkumargupta/why-validate-your-objects-with-kasper-8aa7eb3093e1

NPM package:
https://www.npmjs.com/package/kasper
Post by Will Hoover
https://github.com/hapijs/joi
*Sent:* Friday, January 05, 2018 1:44 AM
*Subject:* [nodejs] Form validation in nodejs
Hello,
I am nodejs beginner and i am trying to form validation in nodejs but not
success, please help me how i will do this i am using Ajax for the form
submision
--
Job board: http://jobs.nodejs.org/
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com
<https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/e8617229-4bcc-4c86-84ae-0bca18084df1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
kai zhu
2018-09-05 20:20:08 UTC
Permalink
swagger can do automatic form validation in both browser/nodejs, using only json-schema (no programming required).

here are some screenshots and links for it being used client-side to validate file-uploads and crud-schemas (demo includes sample-code and on how to run it server-side as well).



[1] video-upload validation
https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileUploadManyByForm_2_1 <https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileUploadManyByForm_2_1>





[2] video-download validation
https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileGetOneById_id_id_1 <https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_file_fileGetOneById_id_id_1>




[2] form-validation
http://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_x_test_parametersDefault_1 <http://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_x_test_parametersDefault_1>




[3] crud-schema validation
https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_addPet_1 <https://kaizhu256.github.io/node-swgg/build..alpha..travis-ci.org/app/#!swgg_id_addPet_1>





[4] live-validation for google-maps directions
https://kaizhu256.github.io/node-swgg-google-maps/build..beta..travis-ci.org/app/#!swgg_id__2Fmaps_2Fapi_2Fdirections_2Fjson_20GET_1 <https://kaizhu256.github.io/node-swgg-google-maps/build..beta..travis-ci.org/app/#!swgg_id__2Fmaps_2Fapi_2Fdirections_2Fjson_20GET_1>






[5] live form-validation for all of github’s ~900 apis (warning: the json-schema is ~1mb and might run sluggish unless you’re using chrome)
https://kaizhu256.github.io/node-swgg-github-all/build..beta..travis-ci.org/app/#!swgg_id__2Frepos_2F_7Bowner_7D_2F_7Brepo_7D_2Fbranches_2F_7Bbranch_7D_2Fprotection_2Fenforce_admins_20POST_1 <https://kaizhu256.github.io/node-swgg-github-all/build..beta..travis-ci.org/app/#!swgg_id__2Frepos_2F_7Bowner_7D_2F_7Brepo_7D_2Fbranches_2F_7Bbranch_7D_2Fprotection_2Fenforce_admins_20POST_1>


kai zhu
Post by Anuj Gupta
I have written this blog to help you out with it
https://www.npmjs.com/package/kasper
https://github.com/hapijs/joi <https://github.com/hapijs/joi>
Sent: Friday, January 05, 2018 1:44 AM
Subject: [nodejs] Form validation in nodejs
Hello,
I am nodejs beginner and i am trying to form validation in nodejs but not success, please help me how i will do this i am using Ajax for the form submision
--
Job board: http://jobs.nodejs.org/ <http://jobs.nodejs.org/>
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md <https://gist.github.com/othiym23/9886289#file-moderation-policy-md>
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines <https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com <https://groups.google.com/d/msgid/nodejs/35604ff9-b59e-4370-99b8-2c9c758bdbf3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
Job board: http://jobs.nodejs.org/ <http://jobs.nodejs.org/>
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md <https://gist.github.com/othiym23/9886289#file-moderation-policy-md>
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines <https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/e8617229-4bcc-4c86-84ae-0bca18084df1%40googlegroups.com <https://groups.google.com/d/msgid/nodejs/e8617229-4bcc-4c86-84ae-0bca18084df1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/4875F5E7-6BA8-4994-AD14-7CDC84136A94%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...