validate.js

Languages and libraries

javascript form validation library

SHOW HN2011

102points
32comments
#100of 1,097 in 2011
Top 10%of 2011 by points

How HN took it

CuriousMostly questions and neutral comments

2 positive, 10 neutral or asking, 1 mixed, 3 critical, out of 16 comments about the project. Thread score -0.09.

Idea: 1 for, 1 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple utility libraries like this help sites when many people contribute

    From 1 comment
    • I really like seeing simple utility libraries like this be posted on github. It makes everyone's sites better when a lot of people contribute to a good library. Nice job, and…
      miles_matthias on HN
  • Non-jQuery solution that is lightweight

    From 1 comment
    • It gets a +1 for being a non-jquery solution (jquery's fine for abstracting the DOM for animation and UX niceties, but you don't need to include what adds up to 2000 lines of…
      FuzzyDunlop on HN

Objections

  • Client-side validation cannot be trusted; server-side checks are still needed

    From 1 comment
    • While client-side validation provides a possibly snappier user experience, developers should constantly be reminded that the client cannot be trusted. Data integrity checks and…
      kgtm on HN
  • Name clashes with several other libraries named validate.js

    From 1 comment
    • I've seen several projects named "validate.js". May I suggest coming up with a different name to let devs know which of the several libraries by that name they're working with?…
      alttag on HN

Requests

  • Inline validation support

    From 2 comments
    • Interesting... is inline validation an option on this?
      kornork on HN
    • Inline, instant validation would make this very useful as a compliment to full server-side validation. I agree that client-side validation can significantly improve the ux for…
      neovive on HN
  • HTML5 attribute support (required, pattern, min, max)

    From 1 comment
    • No support for HTML5? (by that I mean support for "required", "pattern", "min", "max" attributes).
      rimantas on HN
  • Regex and rule parameters instead of callback registration

    From 1 comment
    • I think you should have params to the validators, specifically for the regex case, in which the callback_ approach, with registration and such, is quite onerous. ``` { rules:…
      oinksoft on HN
  • Server-side JavaScript support for shared validation

    From 1 comment
    • I will be adding server-side js support, so this will be a definite use case.
      rickharrison on HN
  • Highlight invalid fields

    From 1 comment
    • I feel that the individual fields that have errors should be highlighted. While it's useful to say "The password field is required." at the top, it's more obvious to the user…
      nikkaelle on HN

Questions

  • How does it compare to jQuery validate?

    From 1 comment
    • How does this compare to jQuery validate¹? I use that a lot and it works great. Did you write this because you didn't wart the dependency with jQuery?…
      y0ghur7_xxx on HN
  • Is documentation available on using it with server-side validation?

    From 1 comment
    • It would also be cool if there was some documentation on how you might use validate.js in concert with server-side validations.
      btucker on HN

Alternatives named

  • jQuery validate

    From 1 comment
    • How does this compare to jQuery validate¹? I use that a lot and it works great. Did you write this because you didn't wart the dependency with jQuery?…
      y0ghur7_xxx on HN
  • Salid jQuery form validator

    From 1 comment
    • While we're on the topic of lightweight JS validation libraries, I released my own and have used it for well over a year on a number of production sites. It's quite feature rich…
      jqueryin on HN
  • LiveValidation

    From 1 comment
  • jQuery Validation Engine

    From 1 comment
    • There is also the validationEngine ! not that i'm a developer on it https://github.com/posabsolute/jQuery-Validation-Engine
      posabsolute on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/3121374)