Accuracy of JavaScript Time

John Resig does some extensive tests after noticing some odd behavior in JS speedtests and notes his findings: Effectively these browsers (IE, Opera, Safari, and WebKit Nightly – all on XP/Vista) are only updating their internal getTime representations every 15 milliseconds. This means that if you attempt to query for an updated time it’ll always […]

PS_BRAMUS.TextConvert: PSD2TXT and TXT2PSD for the masses!

What if you could extract all text strings from a PSD file into a TXT file? Sure, it’s possible, thanks to PS_BRAMUS.TextExport, the PSD2TXT script I wrote a few months ago. Now, what if you wanted to do that in the opposite direction and import strings from a TXT file into a PSD file (viz. […]

jQuery.serializeAnything : Serialize anything (and not just forms!)

Code snippet I found somewhere in my archive: jQuery.serializeAnything() is a jQuery Extension that serializes any element you specify, in contrast to jQuery’s builtin serialize() function which is limited to serializing form elements only.

Firebug 1.2 vs Firefox 2 : Fixing the 'console is not defined' error

Getting some ‘console is not defined‘ errors in Firefox 2 with Firebug 1.2.0? Don’t worry, as it turns out that’s by design. The trick is to issue a window.loadFirebugConsole(); in your Javascript before using the console. Thanks for mentioning it on the list, John! 🙂

Backdropping jQuery functions into PrototypeJS

One of the functions I use quite regularly when working with jQuery is .attr(). Right now – at work – I’m fiddling around in Prototype, and noticed I kept on writing .attr() which – quite evidently – doesn’t exist. Okay, I can use Prototype’s .readAttribute() and .writeAttribute() but that’s quite a hassle: I want one […]