Monthly Archives: February 2009

Tauba Tauba

`Emosanal Atyachar’ has to be the most brilliant song in a while. While initially it sounded almost repulsive, it now makes me laugh every time I listen to it. The devil is, as they say, in the details. Bol bol why did you ditch me, zindagi bhi lele yaar kill me, bol bol why did [...]
Posted in bollywood, devd, music, profanity | Leave a comment

`calculable’ textboxes using jquery

Here’s some code to make your textboxes calculable. Demonstration here. (function($) { $.fn.calculable = function() { return this.each(function() { $(this).focus(function(e) { var expr = $(this).attr('calcExpr'); if (expr) { $(this).val(expr); } }); // end focus $(this).blur(function(e) { try { var expr = $(this).val(); var calculated = eval('with(Math){'+expr+'}'); $(this).attr('calcExpr', expr); $(this).val(calculated); } catch (e) { $(this).attr('calcExpr', ''); [...]
Posted in code, jquery, js | 1 Comment
  • Previously …

  • Categories

  • Meta