[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
.
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 8
Thread images: 1
File: Jfv6F2r.png (109 KB, 946x576) Image search: [Google]
Jfv6F2r.png
109 KB, 946x576
.
>>
Why not just type your phone number
>>
well that's one way to make sure they enter digits. Not a good way. Not a correct way. But a way.
>>
>>54500440
B-but they told me input validation is hard.
>>
>>54500397
wtf man... i know its a general rule that programmers are bad at ux, but for fuck sake...
>input
>when losing focus validate text entered
>if it has a leading + exchange it with 00
>var validInput = (new RegExp('^\\d+$')).test("input");
>if (!validInput) input.class += " wrong-input";
how hard is that?
>>
i have a hexadecimal phone number wtf do i do
>>
>>54500627
you kill yourself
>>
>>54500465
and yet you can easy enter arbitrary strings into that with the chrome inspector.
Thread replies: 8
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.