Tags: javascript

Truck It!: Mozilla TowTruck in a bookmarklet

Mozilla Labs has this really nifty, Javascript-based collaboration utility, TowTruck, which allows real-time web editing collaboration in the browser. It’s got a lot of nifty features I won’t get into in this post; sufficed to say, it’s pretty frickin’ sweet. What I did not find to be as frickin’ sweet, however, is the fact that the TowTruck Javascript file must be included in the source of your page in order to use it. Read More →

ascii.js: A font-based rendering engine for ASCII artwork

A long-standing and thoroughly-enjoyed hobby of mine is creating and consuming ASCII artwork (though not the kind of watered-down crap you would see in, say, an e-mail signature or a chain letter). I recently went on a wild tear after stumbling across a faithful recreation of the Amiga’s Topaz 500 and the IBM’s VGA cp437 fonts, and built a single-page application (or SPA, if you want to be a dick about it) that takes advantage of web-ified versions of these fonts—with some help from the @font-face CSS directive—to display that artwork in its intended form without resorting to a text-to-image conversion process.

Confused yet? Check out my ASCII gallery. If you want to run your own, or just see how it works, I’ve also put the ascii.js source on GitHub.

Javascript document.write alternative

When a script is loaded synchronously, its element’s position in the DOM can be determined. With this information, the <script> element can act as a pivot point for inserting dynamic content. This eliminates the need for document.write, a function which wreaks havoc where AJAX is involved (and flies in the face of modern web development best practices). Read More →