Skip to main content

db

Member since Dec 11, 2008

Recent Blog Comments By db

  • Ask Ben: Removing Duplicate List Items While Maintaining Original List Order

    Posted on Jan 15, 2009 at 1:44 PM

    i did this for a couple of lists, just a little differently, but the results i think are the same. the lists were css and js files to be written to the document head, so the original order had to be maintained and the first occurrence of a duplicate had to remain. i did it by looping the list from e... read more »

  • Ask Ben: Optimizing Form Inputs For Numeric Keypad Usage

    Posted on Sep 26, 2008 at 11:20 AM

    ok, i had to fix this - you know how irritating it is to copy some code and have it fail. var $allfields = $('input.input-field'); var $tabfields = $('input.input-field:not(:last)'); $tabfields.keypress( function (e) { if( (e.which) == 13 ) { $allfields[ $allfields.index(e.target) + 1 ].focus(); ... read more »

  • Ask Ben: Optimizing Form Inputs For Numeric Keypad Usage

    Posted on Sep 25, 2008 at 1:13 PM

    you wouldn't have to check for last if the selector had excluded it: var $fields = $('input.input-field:not(:last)'); then all you need is: $fields.keypress( function (e) { if( (e.which) == 13 ) { $fields[ $fields.index(e.target) + 1 ].focus(); e.preventDefault(); return false; ... read more »

  • jQuery 1.2.6 Even Better!

    Posted on Jun 6, 2008 at 11:23 AM

    regarding increased file size - i just upgraded the version on a site i'm working on using src=" http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js " now if you were to use the same src on your site, then my browser will use my cached version - so no download or unpacking. more opti... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel