Parsley.js: never write a single JavaScript line to validate your forms
11–20 of 80 posts
Re: Parsley.js: never write a single JavaScript line to validate your forms
#12Speaking with my security hat on: This is a really nice library, but you also do the same validations server side right?
Re: Parsley.js: never write a single JavaScript line to validate your forms
#13Re: Parsley.js: never write a single JavaScript line to validate your forms
#14Improve the demo by removing spellcheck from the name field and capitalizaton for ios (and likely other touch devices) where appropriate.
Along the same lines, demonstrate phone number field (number formatting), currency field, and automatically dealing with urls more nicely.
Re: Parsley.js: never write a single JavaScript line to validate your forms
#15Speaking with my security hat on: This is a really nice library, but you also do the same validations server side right?
Re: Parsley.js: never write a single JavaScript line to validate your forms
#16Speaking with my security hat on: This is a really nice library, but you also do the same validations server side right?
Re: Parsley.js: never write a single JavaScript line to validate your forms
#17The implementation just smacks of AngularJS. In fact, implementing something like this would be just short of trivial using Angular...! If you like the concept of "extending html" as used here then you should probably checkout AngularJS: http://angularjs.org
Re: Parsley.js: never write a single JavaScript line to validate your forms
#18I suppose this is more suited to when your models and schema are also defined on the client side? Having just hit this situation (validating a form client-side), I found the best solution was to transport the form schema from the server (because I use Django, I can easily whip up a ModelForm), then push that into a simple Javascript Form object which renders the schema and adds validation. Maybe there's better ways,…
I ported django.forms to JavaScript so I could use it with Node.js, but it also runs on the client: https://github.com/insin/newforms
Could be useful to plug the two together.
Re: Parsley.js: never write a single JavaScript line to validate your forms
#19Speaking with my security hat on: This is a really nice library, but you also do the same validations server side right?
Great question. I would usually prefer server side validation, and with the nice integration that Rails provides between form errors and validations on the model, I am not sure how I can use this. Does anybody who uses a Rails stack combine both server side and client side validations?
Javascript validation provides convenience, not security.
Re: Parsley.js: never write a single JavaScript line to validate your forms
#20Speaking with my security hat on: This is a really nice library, but you also do the same validations server side right?
Great question. I would usually prefer server side validation, and with the nice integration that Rails provides between form errors and validations on the model, I am not sure how I can use this. Does anybody who uses a Rails stack combine both server side and client side validations?