prototype-based image preloader

Preloading images is often a final optimization step when writing a javascript heavy web app. I think its generally because its seen as a pita, so it keep getting pushed as the site is developed until you get to the very end, and something has to be re-engineered to make it look right. [...]


Handling ajax-y file uploads

I’m working on a site for a client where a user needs to upload a logo for their newly created widget.  The client wants the logo to be visible during the widget creation process (so the user can make sure the logo they’re uploading is correct).  A user can add multiple widgets all at the [...]


Protoload is great

Just wanted to give a shout-out to a little javascript tool that I include in pretty much every project.  Protoload lets you mark an element as “waiting” while your AJAX is doing its bit.  It works with prototype and extends Element to add startWaiting and stopWaiting methods.
Its as simple as:
$(’foo’).startWaiting();
or in a slightly bigger example:
var [...]