Skip to content

Comment on Show HN: validate.js - lightweight JavaScript form validation libraryparent

Comments

I am still implementing form validations as server-side validations and not sure I will ever change that.

Super easy to deal with on a simple ajax request and it's in place for all requests. If a POST/PUT is done with an ajax request simply return the error message. Otherwise, set the HTTP status code and render the form with the error as the response.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.