js

jQuery Fallback for HTML5 Placeholder Attribute

I love HTML5 and all its wonderful, new little attributes that make the life of the developer easier and more enjoyable. For example, the placholder attribute, which you can use on text input fields in forms. Why is it great? Because it allows you to place a label inside the form that automatically disappears when the user starts typing text in it. Before HTML5, everyone was doing this, yes, but you had to include javascript to make it work. Not so with HTML5! Now the placeholder attribute has all that UX goodness for you, right in the browser, no js necessary.

Useful Source Code Editors

Gotta love those folks over at Smashing Magazine. I've been pretty happy with and loyal to Dreamweaver throughout my career. Lately, though, I've been doing more telecommuting, and Dreamweaver CS5.5 seems to have real problems with managing sites over a laggy network. Every time I'd try and make a change to the code or save a file, and application would come to a screeching hault for anywhere from 5 seconds to a full minute. Absolute death to productivity and morale.

Dynamic JavaScript Form Validation

Sometimes you get a project that gives you no choice but to hit Google for solutions that are as near to perfect for your specific parameters as possible. In this case, I was tasked with designing and developing a special web page for a contest that included a form for collecting user information and contest submissions. The problem, though, was that I had to design the contest page before I had any content to work with, and I inadvertantly painted myself into a corner: I designed the page to be no taller than a certain height, and due to time contstraints, I couldn’t rework the design.

Subscribe to RSS - js