Simon Willison’s Weblog

Subscribe
Atom feed for javascript

707 posts tagged “javascript”

2007

Datejs—A JavaScript Date Library. Building a date API around chaining—Date.today().next().thursday()—is a neat concept. I’d like to see that adapted for Python’s datetime library.

# 3rd December 2007, 9:01 pm / python, datetime, javascript, chaining, datejs

Transparent PNGs in Internet Explorer 6. 24ways kicks off again, with the first article introducing super-sleight, an updated script for getting transparent PNGs to work in IE6.

# 1st December 2007, 12:03 am / pngs, ie6, ie, 24-ways, drew-mclellan, javascript

Jetty WebServer. Jetty 6.1 was the only cometd / Bayeux implementation I tried which worked out of the box.

# 27th November 2007, 6:43 pm / java, javascript, jetty, webserver, cometd, comet, bayeux

Deconstructing Facebook Beacon JavaScript. How Facebook’s new Beacon service (also known as “Facebook ruined Christmas”) actually works.

# 25th November 2007, 9:20 pm / javascript, facebook, beacon, privacy

DebugBar. Suggested at BarCamp London 3 as a useful tool for developing with IE; apparently includes a great JavaScript debugger.

# 25th November 2007, 10:32 am / javascript, debugger, debugbar, barcamplondon3, internet-explorer, ie, debugging

A Taxonomy of Event- and REST-based Comet. Kris Zyp describes a conceptual model for Comet messages based on REST semantics (so you can send a PUT referencing a specific URI down to a client to represent an idempotent state change).

# 21st November 2007, 8:18 pm / idempotent, put, http, rest, kriszyp, javascript, comet

Weewar (Nat v.s. me). Really impressive turn based strategy game, implemented entirely in the browser. Surprisingly addictive; you have been warned.

# 20th November 2007, 11:52 pm / weewar, games, javascript

IE ActiveX(“htmlfile”) Transport, Part II. Fascinating tricks for working around IE memory leaks using explicit CollectGarbage() calls and setInterval() to an empty function.

# 19th November 2007, 11:48 am / htmlfile, ie, memoryleaks, javascript, comet, activex

JavaScript Beautifier (via) Useful online tool (source code also available) for un-obfuscating JavaScript that has had its whitespace stripped out.

# 16th November 2007, 8:43 pm / javascript, obfuscation, unobfuscation

Yahoo! Search Contextual Precaching. Neat performance trick on Yahoo! Search: the moment you start typing (indicating you intend to search) the site quietly fires off a bunch of requests to precache assets needed for the search results page.

# 16th November 2007, 3:58 pm / performance, javascript, ajaxian, yahoo, yahoosearch

Taking the canvas to another dimension. Opera have finally released a test version with support for a opera-3d canvas context—Windows only for the moment, but Mac and Linux versions are promised “soon”.

# 16th November 2007, 1:39 pm / opera, 3d, canvas, javascript

Ten New Things in WebKit 3. Does “incremental updates for persistent server connections” for XMLHttpRequest mean Safari now has native support for Comet?

# 16th November 2007, 1:19 am / comet, ajax, javascript, safari, webkit, safari3, xmlhttprequest

google-axsjax (via) “The AxsJAX framework can inject accessibility enhancements into existing Web 2.0 applications using any of several standard Web techniques”—including bookmarklets and Greasemonkey. The enhancements conform to W3C ARIA, supported by Firefox 2.0 and later.

# 14th November 2007, 5:18 pm / firefox, aria, w3c, accessibility, ajax, javascript, axsjax, google, greasemonkey, bookmarklets

JavaScript Method Overloading. John Resig shows a clever trick for overloading JavaScript methods based on the number of arguments, using the little-known .length property of a JavaScript function object.

# 13th November 2007, 2:39 pm / javascript, john-resig, methodoverloading

HTML5 Media Support in WebKit. WebKit continues to lead the pack when it comes to trying out new HTML5 proposals. The new audio and video elements make embedding media easy, and provide a neat listener API for hooking in to “playback ended” events.

# 12th November 2007, 11:21 pm / media, audio, events, html5, osx, safari, video, webkit, javascript

Eye-Fi launches. Really neat idea: a digital camera SD card with built-in WiFi to beam your photos straight to your laptop. SitePen built the UI, which runs in your browser on top of Dojo and talks to a small web server running locally.

# 11th November 2007, 10:40 pm / eyefi, digitalcameras, photography, wifi, sitepen, javascript, dojo

JavaScript Madness: Keyboard Events. Keyboard events in JavaScript are a total pain. This looks like a pretty comprehensive reference to getting them to work cross-browser.

# 9th November 2007, 11:07 pm / crossbrowser, javascript, keyboard, events

Pseudo-custom events in Prototype 1.6. Useful tutorial showing how to use Prototype 1.6’s custom events to implement a cross-browser mouse wheel event.

# 9th November 2007, 11:02 pm / mousewheel, prototype, javascript, customevents, andrew-dupont

dojo.NodeList API docs. Support in Dojo for jQuery-style chaining operations.

# 8th November 2007, 11:16 am / javascript, libraries, dojo, jquery, chaining

In the long term, I want to replace JavaScript and the DOM with a smarter, safer design. In the medium term, I want to use something like Google Gears to give us vats with which we can have safe mashups. But in the short term, I recommend that you be using Firefox with No Script. Until we get things right, it seems to be the best we can do.

Douglas Crockford

# 7th November 2007, 3:36 pm / javascript, noscript, firefox, google-gears, dom, security, mashups, douglas-crockford

Announcing Dojo 1.0. The tough learning curve that accompanied 0.4 and earlier has been replaced with an elegant core module (dojo) and two exciting subprojects (dojox and dijit). Well worth a look.

# 7th November 2007, 1:17 pm / dojo, javascript, dojox, dijit

Comet Daily. New regularly updated site covering Comet, the Ajax-like umbrella term for JavaScript server-push techniques. Already a bunch of great stuff on there.

# 7th November 2007, 10:53 am / javascript, comet, ajax, cometdaily

Gmail Greasemonkey API (via) The new version of Gmail includes API hooks for Greasemonkey script authors. The documentation is by Mark Pilgrim, author of Greasemonkey Hacks.

# 7th November 2007, 10:38 am / mihaiparparita, mark-pilgrim, gmail, google, greasemonkey, javascript

How to make Ajax work for you. Slides from my three hour Ajax tutorial, presented at Web 2.0 Expo Berlin on Monday.

# 7th November 2007, 10:35 am / ajax, javascript, tutorial, web2expoberlin, speaking

The Story Behind ES4. If you’re scratching your head at the recent eruption of acrimony surrounding ECMAScript 4 (the next standardised version of JavaScript) Neil Mix has a relatively easy to follow catch-up post.

# 2nd November 2007, 6:15 am / neil-mix, ecmascript, standards, es4, javascript

Site-specific browsers and GreaseKit. New site-specific browser tool which lets you include a bunch of Greasemonkey scripts. For me, the killer feature of site-specific browsers is still cookie isolation (to minimise the impact of XSS and CSRF holes) but none of the current batch of tools advertise this as a feature, and most seem to want to share the system-wide cookie jar.

# 25th October 2007, 7:56 am / greasekit, csrf, javascript, greasemonkey, cookies, safari, security, sitespecificbrowsers, webkit, xss, chris-messina

Upgrading to Prototype 1.6: real world examples. I still don’t find Prototype as intuitive as jQuery, but the API improvements between 1.5 and 1.6 are very impressive.

# 24th October 2007, 7:19 pm / javascript, libraries, jquery, prototype, radiantcms

jQuery Logging (via) Brilliant four line jQuery plugin that lets you insert Firebug console.log() calls directly in to chains.

# 19th October 2007, 12:52 pm / jquery, logging, debugging, javascript, firebug, dominic-mitchell

CouchDB first impressions. Jacob’s been poking at CouchDB. Inserting data is slow, but everything else looks pretty slick considering how recently the JSON / JavaScript views functionality was added.

# 19th October 2007, 11:43 am / json, javascript, couchdb, jacob-kaplan-moss, erlang

Dealing with the Flexibility of JavaScript. Some thoughts on function signature overloading in JavaScript.

# 16th October 2007, 11:24 am / javascript, overloading, sitepen, neil-roberts