[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
.

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

[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK