3 articles Javascript

Preventing double form submissions with Parsley form validation

Thanks to Jon Leigh for this snippet!  If you use Parsley form validation, a reliable form validation library, here's an easy way to prevent double submissions of forms.  This disables the form submission button only once the form passes Parsley's form validation. I've implemented this in a few different places and it works flawlessly! …

Google Chrome’s form autocomplete feature — shutting it off to avoid UI chaos for complex forms

All browsers have their idiosyncrasies -- Internet Explorer had so many Microsoft is changing its name. Here's another one of a hundred browser "idiot syncrasies" that wasted so much time.  I've always developed sites first for Firefox then Chrome then found I had to add more hacks on top for IE, the infamous "shiv" code…

An example of browser sniffing: Detect browser so your website can accommodate certain browser limitations or you want to isolate certain behavior and content to affect users only using particular browsers.

Below is a sample of a code snippet I've used in different forms to achieve a better website experience for more visitors.  When I have time, I try to unlock more and improve more, after using Google Analytics to see what segment of visitors deserve more attention.  You need to  prioritize, but when so many…