|
|
|
| Non-WTF Job: Interface Designer/Front-end Developer at Naviance (DC) |
| « Thinking Machines | Dead Man's Switch » |
"Some years ago I was looking for a job and did a lot of online résumé form filling," Gustavo S. writes.
"One of those many sites had a form that took about a second to uppercase my name when I hit Tab, before putting the focus on the next field.
"That puzzled me. One second to uppercase a single-lined string?! I kept filling the other fields and it continued like this... until it got worse. When I got to the multiline, free text fields to describe past experiences and so forth, I could go for a coffee after every field.
"That was too much for me and I (too late already) looked at the page source.
"The javascript was something like this:
function validate(field)
{
var A = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.:!?@#$%¨&*()_+=[]^`Çç{}`^<>\\/|";
var B = " ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.:_____________________________";
var oldval = field.value;
var newval = "";
for (var i=0; i<oldval.length; i++)
{
var char = A.indexOf(oldval.substr(i, 1));
newval = newval + B.substr(char, 1);
}
field.value = newval;
}
"Somehow I felt glad that they didn't call me."
|
This could've led to some brilliant support calls.
"Christopher Konstantopoulos says the site's running very slowly? But I just checked with Bob Jones and he says it's fine!" |
Re: The Long Road to Uppercase
2008-05-14 10:15
•
by
WhiskeyJack
|
I WAS JUST GOING TO SAY. THAT IS THE REAL WTF, IN MY OPINION. |
| « Thinking Machines | Dead Man's Switch » |