Skip to content

Cross your t’s and dot your i’s

This content will be shown before all post

I’m sure it’s happened to us all, but I figured I would tell a humorous tale of how (yes we all know it) missing the littlest character could have us spending an hour and a half pulling our hair out, yet once we enter into the programming and javascript realm, they matter all the more…by that time you become bald.

On a recent project, one of the checkout pages required some simple math calculations for different extras and additions you could apply to each product. The client wanted it calculated in realtime, so I whipped together some functions that in a wonderful world should have been quite seamless. I send up the page to test it out….nothing. Not even a slight bit of javascript activity. I pull up my source code, all the functions are there so I know I’m viewing the right version. Naturally, I blame Internet Explorer and head over to Firefox who has the same story to tell – nothing. I proceed to spend a half hour trying the living daylights to even get a Javascript error, the one thing we all hate and dread and inevitably see 90% of the time…I couldn’t even try to get to that point!?! Is Javascript disabled? The world is crashing down around me. Humbled I call one of my colleagues to take a look at my code. He goes through for 5-10 minutes…thinks he finds it (finds other problems of course…I hadn’t been able to test it yet – give me a break!), and finally discovers my little problem. Can you see it below?

input name=”num_colors” type=”radio” value=”1″ onClick”colorChange();” checked

Moral of the story: forgetting your =’s make you feel like you = crap.

This content will be shown after all post