TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Formance.js – Library for formatting and validating form fields

54 pointsby omarshammasover 11 years ago

12 comments

slgover 11 years ago
Somewhat off topic, but I wish there was a credible site out there that reviewed these type of general libraries. There are hundreds of them out there and when I need to find one it usually comes with hours of research trying to decide on the right one to use. It would be great if there was a place to look up the general strengths and weaknesses of each without doing all the necessary leg work.
评论 #6382378 未加载
评论 #6384302 未加载
评论 #6383615 未加载
评论 #6382809 未加载
评论 #6384204 未加载
eluosover 11 years ago
I wish they wouldn't show error prompts when the user has just started entering characters
评论 #6382688 未加载
评论 #6382833 未加载
ianstormtaylorover 11 years ago
If you&#x27;re looking for a nice validation API that doesn&#x27;t require jQuery, I&#x27;ve been working on one recently for forms: <a href="https://github.com/segmentio/validate" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;segmentio&#x2F;validate</a><p>I personally really dislike working with jQuery plugins, because their APIs tend to be very poorly thought out. And using strings as a way to call methods is generally unfortunate, especially when they are snake-cased like these ones.
评论 #6383200 未加载
GBBover 11 years ago
For North American phone numbers, it&#x27;s fairly common to input your phone number with the preceding country code of 1. It would be nice if the library accounted for that.
评论 #6382340 未加载
jbackusover 11 years ago
You should make these compatible with Parsley.js: <a href="http://parsleyjs.org/documentation.html" rel="nofollow">http:&#x2F;&#x2F;parsleyjs.org&#x2F;documentation.html</a>
评论 #6383518 未加载
jacobbijaniover 11 years ago
A few of them (phone number) break if you CMD-A to select all and start typing, to replace the entire value. It just deselects and appends rather than overwriting.
评论 #6382314 未加载
hyperturtleover 11 years ago
If I fill out the phone number all the way, then go back with the arrow keys and try to delete&#x2F;change numbers, I get weird behavior
评论 #6383089 未加载
zen_boyover 11 years ago
Great plugin!<p>Is there something similar for AngularJS that supports input limiting and formatting?
BaconJuiceover 11 years ago
aaannddnd it works in IE7! Beautiful. Thank you. Will be using this for sure!
bigdover 11 years ago
I&#x27;m so going to test 4242 4242 4242 4242 in every shopping website now.
JazCEover 11 years ago
if it can&#x27;t validate emails according to the RFC&#x27;s don&#x27;t include email &quot;validation&quot;
DustinCalimover 11 years ago
What about international numbers?
评论 #6382331 未加载