Simon Willison’s Weblog

Subscribe
Atom feed for javascript

688 items tagged “javascript”

2007

jQuery 1.2. Lots of neat new stuff; my favourite new feature is “Partial .load()” which lets you pull in HTML with Ajax and then use a CSS selector to grab a subset of that page and inject it in to the DOM.

# 11th September 2007, 8:44 am / jquery, html, css, javascript, selectors

Google Maps API gets clickable polylines and polygons. Interesting explanation of how they optimised calculating the distance to the nearest point on a polyline.

# 8th September 2007, 12:58 pm / polygons, polylines, algorithms, google, googelmaps, javascript

Protoscript (via) JavaScript tool designed for easy prototyping of JS interactions; powered by YUI and jQuery.

# 7th September 2007, 10:55 pm / jquery, yui, javascript, libraries, prototyping, protoscript, bill-scott

HTTPOnly cookie support in Firefox. Five years after the bug was filed, HTTPOnly cookie support has gone in to the Mozilla 1.8 branch. This is a defence in depth feature that has been in IE for years—it lets you set cookies that aren’t available to JavaScript, and hence can’t be hijacked in the event of an XSS flaw.

# 6th September 2007, 6:27 am / httponly, brad-fitzpatrick, firefox, security, ie, mozilla, javascript

CouchDb: Some Context. CouchDb developer Jan Lehnardt wrote up detailed notes on slides from a presentation he gave back in June, explaining most of what’s interesting about CouchDb (although without the new JavaScript function query language).

# 4th September 2007, 2:31 am / javascript, couchdb, jan-lehnardt, nonrelational, slides

CouchDB: Thinking beyond the RDBMS. CouchDB is a fascinating project—an Erlang powered non-relational database with a JSON API that lets you define “views” (really computed tables) based on JavaScript functions that execute using map/reduce. Damien Katz, the main developer currently works for MySQL and used to work on Lotus Notes.

# 3rd September 2007, 9:48 am / couchdb, erlang, databases, json, javascript, damien-katz, lotusnotes, mysql, mapreduce

Freebase. Out of closed beta, although you still need an invite code to contribute. I hope they drop the JavaScript requirement for viewing content on the site.

# 3rd September 2007, 2:35 am / javascript, freebase, inaccessible

Google Web Toolkit: Towards a better web. Good overview of why GWT exists, but I take exception to the title: requiring JavaScript to even display something does not make the web “better”.

# 29th August 2007, 8:21 pm / javascript, google, gwt

jQuery 1.1.4: Faster, More Tests, Ready for 1.2. The backwards compatibility policy for 1.2 is pretty clever: provide a plugin that restores removed functionality (such as XPath selectors).

# 24th August 2007, 4:22 pm / jquery, javascript

Building a JavaScript Library. Slides from John Resig’s Google Tech Talk. Some great tips in here, including: make your APIs orthogonal, look for common patterns, keep things extensible and write the documentation yourself.

# 24th August 2007, 4:02 pm / john-resig, googletechtalk, slideshare, javascript, jquery, api-design, libraries

Live Query jQuery plugin. Ingenious plugin that lets you register jQuery event bindings to be executed when a new element matching the provided selector is added to the DOM. Performance is kept snappy by only running the check after a jQuery DOM manipulation method has been executed (append, prepend, attr etc); it won’t notice elements added using regular DOM methods.

# 22nd August 2007, 10:01 pm / jquery, javascript, dom, selectors, brandon-aaron, plugins

Fixing GC issues on IE 6: New IE download. Microsoft have released Windows Script Host / Script Runtime version 5.7, which apparently cleans up a bunch of IE 6 memory leaks.

# 17th August 2007, 11:50 pm / ie6, internet-explorer, microsoft, windowsscripthost, javascript, memoryleaks

Learning jQuery. An entire year’s worth of jQuery tutorials, split in to beginner, intermediate and advanced.

# 17th August 2007, 11:50 am / learningjquery, jquery, javascript, tutorials

Operation Aborted. Another fantastically obscure IE bug: appending new elements to the HEAD element breaks if a BASE tag is present.

# 16th August 2007, 11:21 am / ie, internet-explorer, bugs, javascript, operationaborted, shauninman

Prototype 1.6.0 release candidate. Prototype gets a long-needed update to its Event API, and some interesting new Function.prototype extensions.

# 16th August 2007, 8:49 am / prototype, javascript, events

Some Notes on the YUI Rich Text Editor. Dav Glass explains how he achieved the impressive feat of building a rich text editor widget that also works in Safari.

# 15th August 2007, 8:13 pm / safari, richtext, yui, dav-glass, javascript

Lazy Function Definition Pattern. Neat JavaScript trick: redefine a function the first time it’s called, for example to switch in different browser implementations based on object detection.

# 15th August 2007, 6:57 pm / javascript, pete-michaux

jQuery for JavaScript programmers

When jQuery came out back in January 2006, my first impression was that it was a cute hack. Basing everything around CSS selectors was a neat idea (see getElementsBySelector) but the chaining stuff looked like a bit of a gimmick and the library as a whole didn’t look like it would cover all of the bases. I wrote jQuery off as a passing fad.

[... 2,608 words]

Background Iframe (bgiframe). jQuery plugin that inserts an iframe shim behind an element in IE, allowing the element to be positioned overlapping a select box without the select box showing through.

# 9th August 2007, 2:54 pm / jquery, internet-explorer, javascript, ie, select, brandon-aaron, iframes, plugins

SproutCore (via) MVC JavaScript framework used to build the new .Mac Web Gallery application.

# 7th August 2007, 11:35 pm / ajax, javascript, mvc, apple, dotmac, bill-humphries

CodePress. “Real Time Syntax Highlighting Editor written in JavaScript”.

# 7th August 2007, 10:49 pm / codepress, syntaxhighlighting, javascript

jQuery in 15 minutes. A quick introduction I put together. Much more interesting in conjunction with Firebug powered demos.

# 7th August 2007, 2:57 pm / jquery, javascript, torchbox, firebug

The Wii Remote API. “allows the Web page to detect all Wii Remotes that are connected to the Wii [...] this makes it possible to make Web pages interact with up to four users at the same time, a concept not normally possible with traditional JavaScript event detection.”

# 6th August 2007, 9:32 pm / javascript, opera, wii

YUI 2.3.0. New components are a rich text editor, dojo-style package loader, lazy ImageLoader, colour picker and unit test framework. Easier skinning as well.

# 1st August 2007, 8:20 am / skinning, javascript, yui, dojo, testing

Mouseover DOM Inspector v2.0. Steve Chipman’s excellent debugging bookmarklet created back in 2005—includes useful keyboard shortcuts for quickly manipulating the DOM of the current page.

# 30th July 2007, 5:13 pm / dom, javascript, steve-chipman, modi, bookmarklet

XRAY web developer’s suite (via) Smart new bookmarklet from westciv—kind of like Steve Chipman’s MODI but with the addition of the canvas element for box model visualisation.

# 30th July 2007, 5:11 pm / jeffrey-zeldman, westciv, xray, bookmarklet, canvas, javascript, steve-chipman

YUI-based Image Cropper Widget. Nice implementation of a useful widget.

# 30th July 2007, 12:56 pm / widget, yui, javascript

The recent announcement that Mozilla's next JavaScript engine, Tamarin, will also be a container for functionality written in Python and Ruby (and, one assumes, beyond) is proof that JavaScript is the new Parrot.

Aaron Straup Cope

# 29th July 2007, 9:17 pm / javascript, aaron-straup-cope, mozilla, python, ruby, tamarin, parrot

Mozilla and IronPython: IronMonkey. Interesting to note that all three new Mozilla projects are being lead by experienced Python developers.

# 26th July 2007, 8:07 pm / python, javascript, mozilla, ironpython, ironmonkey, voidspace

Brendan Eich: New Projects. Exciting new projects from Mozilla. ActionMonkey is joined by IronMonkey (IronPython/IronRuby on Tamarin) and ScreamingMonkey (Tamarin for IE). Upgrading IE’s JavaScript using the Flash Player as a vector is a game-changing idea.

# 26th July 2007, 8:05 pm / ironmonkey, actionmonkey, flash, internet-explorer, ie, brendan-eich, ironpython, ironruby, mozilla, screamingmonkey, tamarin, javascript