Simon Willison’s Weblog

Subscribe

639 items tagged “javascript”

2007

Rules For JavaScript Library Authors. The guiding principles behind Dean Edwards’ base2 library, entirely applicable to every JavaScript developer. # 23rd March 2007, 5:53 pm

JavaScript/CSS Font Detector (via) Really clever trick: detects the fonts that you have installed by writing out some text and measuring its dimensions. # 20th March 2007, 11:20 pm

DED|Chain JavaScript Library (via) Dustin’s new JavaScript library, which puts a JQuery style chained API on top of YUI. # 20th March 2007, 10:36 am

A Zoned Defense. Using JavaScript’s date.getTimezoneOffset() to detect the user’s timezone and stash it in a cookie. # 20th March 2007, 9:51 am

wii.js (via) A JavaScript library that lets you detect the Wii browser, and provides easy hooks for reacting to keys pressed on the Wiimote. # 12th March 2007, 10:23 pm

Ajax3d Demo. Really impressive Virus clone, using the canvas element. # 9th March 2007, 7 pm

Dashcode review. “Dashcode is quite possibly the best non-Firebug Javascript environment I’ve ever used.” High praise indeed. # 5th March 2007, 9:06 pm

swf Image Replacement. Really neat idea: unobtrusively replace an inline image with a SWF, then apply effects like rotation, rounded corners and drop-shadowns. Shame it suffers from Flash-Of-Unstyled-Content. # 27th February 2007, 7:51 pm

Serving YUI Files from Yahoo! Servers (via) If everyone who uses YUI links to the same set of files, your users will already have the YUI code cached in their browser when they arrive on your site. # 23rd February 2007, 6:45 pm

John Resig: Thoughts on OpenAjax. I hadn’t looked in to OpenAjax—from John’s analysis it seems like they need to make it easier for open-source projects to participate and do a bunch of work to modernise their core library. # 22nd February 2007, 10:20 pm

parseDateString function in dateparse.js return wrong date for ’2006-12-31’. I didn’t realise that you have to initialise a JavaScript Date object in a certain order; if you don’t weird bugs can result. # 17th February 2007, 7:04 pm

Neighbourhood Fix-It. Report problems to your council across the UK. The most detailed Ordinance Survey maps anywhere online, and a superb example of progressive enhancement in action—the maps work without JavaScript, and the site even works without images! # 17th February 2007, 5:05 pm

The Zimki Plan. Zimki is a hosted JavaScript application server by Fotango. The idea is to open source it, then build a component so developers can seamlessly switch to hosting on Fotango’s server farm if they need to handle a spike in traffic. # 16th February 2007, 3:50 pm

Sumo! A Generic Microformats Parser For JavaScript. Dan Webb’s BarCamp talk on Metaprogramming JavaScript will be a must-see. # 9th February 2007, 10:57 am

Live DOM Viewer (via) Neat tool from Hixie that provides an insight in to what browsers are actually thinking. # 6th February 2007, 1:12 am

The window.onload problem (still). Peter Michaux offers the most comprehensive overview of this important topic to date. # 5th February 2007, 8:13 pm

Fork JavaScript. A great name for Yet Another JavaScript Library. This one tries to combine the best bits from YUI and Prototype. # 20th January 2007, 11:39 pm

MySpace: Too Much of a Good Thing? CSS customization really was just the result of forgetting to strip HTML. They “eventually” decided to filter out JavaScript(!) # 17th January 2007, 9:09 am

jQuery 1.1. jQuery is one year old. The latest release features API improvements and some significant optimisations. # 15th January 2007, 5:13 pm

The JavaScript alert(), confirm() and prompt() functions in Firefox, Opera and MSIE (but not Safari) will truncate the message after any null character. So an unsuspecting programmer who inserts user-provided text into one of these dialog boxes opens up an opportunity for the user to rewrite the bottom of the dialog box.

Neil Fraser # 13th January 2007, 12:28 pm

AJAX Debugging with Firebug. Great Firebug tutorial from creator Joe Hewitt himself. I didn’t know you could trigger profiling from your own code using console.profile() / console.profileEnd(). # 12th January 2007, 11:21 am

Offline Gmail and Blogger Using the Dojo Offline Toolkit. These are just mockups at the moment, but they’re a useful illustration of how offline browsing modes for Web applications could work. # 10th January 2007, 12:40 pm

macrumorslive.com. The MacRumors ajax keynote coverage gets better every time—now they have live photos in addition to the text updates. Simple but effective. # 9th January 2007, 5:11 pm

IE JScript Performance Recommendations Part 3. Once again, Microsoft’s official advice is to avoid closures entirely rather than learn how to use them safely. Sigh. # 9th January 2007, 11:48 am

The Dojo Offline Toolkit. The Dojo Offline Toolkit will be a small, cross-platform, generic download that enables web applications to work offline. # 7th January 2007, 10:24 pm

2006

Javascript character set screw-ups (via) Some browsers treat JavaScript files as having the same content-type as the page from which they are linked. This could cause problems with UTF-8 encoded JSON; the workaround is serving up ASCII with unicode escape sequences. # 21st December 2006, 3:20 pm

Why JSON isn’t just for JavaScript

Dave Winer’s discovery of JSON (and shock that “it’s not even XML”) has triggered an interesting discussion thread, on his blog and elsewhere. Plenty of people have re-assured him (and themselves) that it’s only used for JavaScript—it’s convenient in the browser but irrelevant elsewhere.

[... 787 words]

Conditionally Sticky Sidebar. A nicer implementation of the trick I’m using for my add comment form; this one takes advantage of position: fixed in browsers that support it. # 20th December 2006, 1 am

Create cross browser vector graphics. An accessible introduction to dojo.gfx, a powerful 2D drawing API built on SVG and VML. # 20th December 2006, 12:42 am

YUI CSS Grid builder (via) The YUI CSS grid system can be hard to get your head around. This interactive tool makes it much easier to figure out. # 16th December 2006, 10:30 pm