jQuery validation plugin .. was causing ff2 to choke. It also didn't have a multiple-email validator .. or a split-up phone validator -- although on that last one, I highly advise you push back - a phone # field should just be ONE INPUT.
Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts
Wednesday, July 8, 2009
Friday, May 15, 2009
jQuery settles down with dojo, gains weight
Sure, this is months-old news, but still. I remember back in the good ol' days when jQuery was a young, athletic rising star. Then it met dojo and settled down.. and gained weight. Look under the jQuery hood and you'll see .. two libraries blast-welded together, complete with their own separate prenups, er, copyright blocks: jQuery and Sizzle, from the dojo foundation.
Wednesday, April 22, 2009
Don't Leave Keyboarders in the Cold
A handy jQuery plugin to make it easier to play nice with the keyboard-centric folks and improve accessibility
This code assumes the definition of a 'keys' object that identifies keycodes by more readable names, such as keys = {space:32, enter:13};
// make a new plugin that handles click + keypress,
// assuming that hitting space or enter counts as a 'click'.
$.fn.klik = function(f){
return this.bind('click keypress', function(e){
if(!e.keyCode || e.keyCode == keys.space || e.keyCode == keys.enter){
return f.call(this, e);
}
});
};
Labels:
accessibility,
jquery,
jquery plugin,
keyboard,
plugin
Subscribe to:
Posts (Atom)