Tuesday, April 21st, 2009

Browsing on the Couch

Category: Database, JavaScript, JSON, Library

Atul Varma, a fantastic colleague in Building “S” at Mozilla, has been playing with a JavaScript implementation of CouchDB called BrowserCouch: BrowserCouch is an attempt at an in-browser MapReduce implementation. It’s written entirely in JavaScript and intended to work on all browsers, gracefully upgrading when support for better efficiency or feature set is detected. Not Read the rest…

Posted by Dion Almaer at 6:34 am
1 Comment

3.8 rating from 22 votes

Friday, April 17th, 2009

Thumbnails.js: Screenshots via Page Glimpse

Category: JavaScript, Library

Eric Ferraiuolo, inspired by the deprecation notice of Alexa, wrote a webpage thumbnails JavaScript library that lets you grab web page thumbnails via Page Glimpse: < View plain text > javascript var container = document.getElementById(‘container’),     thumbs = Thumbnails({ devkey:’xxx’ });   thumbs.get(‘’, append); thumbs.get([     ‘’,     ‘’,     ‘’ Read the rest…

Posted by Dion Almaer at 4:03 am
1 Comment

2.9 rating from 31 votes

Thursday, April 16th, 2009

Jabbify Comet Service Released

Category: Comet, JavaScript

Brian Moschel and Justin Meyer of JavaScriptMVC have opened their Jabbify chat client into a general purpose Comet service called Jabbify. Some of their claims: Automatic Scaling: Jabbify scales to thousands of users per domain with no additional maintenance on your part. Instant setup: Download a script and you’re developing with Comet in 30 seconds Read the rest…

Posted by Ben Galbraith at 1:14 pm

4.1 rating from 21 votes

Giving you that CompSci 101 feeling with JavaScript

Category: JavaScript

Nicholas Zakas is taking a break from performance posts as he starts a computer science in JavaScript repository. First up in the “remember that data structures weeder Comp Sci class?” moment is the linked list: It consists of a sequence of nodes, each containing arbitrary data fields and one or two references (”links”) pointing to Read the rest…

Posted by Dion Almaer at 6:33 am

2.1 rating from 28 votes

Wednesday, April 15th, 2009

ierange: Implementing W3C DOM ranges for IE

Category: IE, JavaScript

Tim Cameron Ryan has released a full, feature complete version of W3C DOM Ranges shim that adds support to IE, ierange. It goes further than other versions: Ranges: document.createRange() startContainer, startOffset, endContainer, endOffset, commonAncestorContainer, collapsed setStart(), setEnd(), setStartBefore(), setStartAfter(), setEndBefore(), setEndAfter(), selectNode(), selectNodeContents(), collapse() insertNode(), surroundContents() extractContents(), cloneContents(), deleteContents() compareBoundaryPoints(), cloneRange(), createContextualFragment(), toString() Selection: Range Read the rest…

Posted by Dion Almaer at 4:04 am

4.2 rating from 20 votes

Monday, April 13th, 2009

oFrameBust: Proposed Protocol for iFrame Choice

Category: JavaScript

We’ve all seen iframes used in an attempt to allow you to surf away from site A to site B whilst still allowing site A to inject some sort of presence into the experience. As Marcus Westin puts it: “iframing” by some, e.g. facebook and digg, adds value to your site; iframing by others, e.g. Read the rest…

Posted by Ben Galbraith at 11:00 am

2.7 rating from 20 votes

EcmaScript Edition 5, formerly known as 3.1: Getting a new JavaScript

Category: JavaScript

You probably remember the history. JavaScript 2, the reckoning, was going to come from EcmaScript Edition 4. That never happened, and instead the 3.1 group moved on with their agenda for “baby step” changes to the language. Now we have a final release of that work, with a new name, EcmaScript Edition 5 which is Read the rest…

Posted by Dion Almaer at 8:01 am

4 rating from 25 votes

Thursday, April 9th, 2009

Safari-style Candybars for Everyone

Category: Canvas, JavaScript, Library, UI

Christian Effenberger wrote in with another impressive piece of work: Gauge.js 1.0 allows you to add programmable gauges (with shading and reflection) to your webpages. It uses unobtrusive javascript to keep your code clean. It works in all the major browsers – Mozilla Firefox 1.5+, Opera 9+, IE6+ and Safari. On older browsers, it’ll degrade Read the rest…

Posted by Ben Galbraith at 7:00 am

3.9 rating from 45 votes

jQuery Glow

Category: JavaScript, jQuery, Library

< View plain text > javascript $(document).ready(function() {       $(‘.white’).addGlow({ textColor: ‘white’, haloColor: ‘#aaa’, radius: 100 });       $(‘.blue’).addGlow({ textColor: ‘#00f’, haloColor: ‘#00f’, radius: 100 });       $(‘.green’).addGlow({ textColor: ‘#0f0’, haloColor: ‘#0f0’, radius: 100 });       $(‘.red’).addGlow({ textColor: ‘#f00’, haloColor: ‘#f00’, radius: 100 });       Read the rest…

Posted by Dion Almaer at 5:57 am

2.5 rating from 109 votes

Tuesday, April 7th, 2009

Chrome Extension API; How we wish we have named parameters

Category: Chrome, JavaScript

< View plain text > javascript chromium.tabs.createTab({  "url": "",  "selected": true,  "tabIndex": 3 }); This is how you will probably create a new tab using the Chrome extensions API when it comes out. Aaron Boodman talked about the choice and how they are looking to make the APIs look more like this: I’m using the Read the rest…

Posted by Dion Almaer at 6:13 am

3.4 rating from 22 votes

Monday, April 6th, 2009

Great visualizations with Protovis

Category: Canvas, JavaScript

I have been very impressed with Andrew Sutherland of the Mozilla Messaging team (which is one reason that I have faith that I will dump Gmail for something he and the Messaging team come up with one day ;) and the visualizations that he is playing with are quite cool indeed. Seeing your email in Read the rest…

Posted by Dion Almaer at 8:29 am

4 rating from 20 votes

GX 1.1 and GX Extras

Category: JavaScript

Riccardo Degni has updated GX: I’m really pleased to announce you the new release of GX. GX is smaller, has a full support for delaying animations in the queue and last but not least the new GX.Extras file (2kb) is now available: it contains 12 new methods and allows to create rich and complex sequences Read the rest…

Posted by Dion Almaer at 4:23 am

2.1 rating from 49 votes

Friday, April 3rd, 2009

Detecting event support in browsers

Category: JavaScript, Tip

Kangax has a really nice article on testing for event support in browsers in which he delves into the quirks and work-arounds needed to get ‘er done, coming up with a nice generic solution: < View plain text > javascript var isEventSupported = (function(){     var TAGNAMES = {       ‘select’:’input’,’change’:’input’,   Read the rest…

Posted by Dion Almaer at 7:19 am

4.3 rating from 20 votes

Poller: YUI3 Small Polling Component

Category: JavaScript, Yahoo!

Eric Ferraiuolo has created a YUI3 component for smart polling which means: Use conditional GET requests Retain the most recent Etag and Last-Modified date of the polled resource Disable polling when the browser window is inactive Implementing a smart polling process in our application’s rich UI gives us some desired benefits: Removal of the refresh Read the rest…

Posted by Dion Almaer at 6:05 am
1 Comment

3.6 rating from 34 votes

Thursday, April 2nd, 2009

Palm Pre at Web 2.0 Expo

Category: JavaScript, Mobile

Close to 5pm, and you started to see a huge snaky line making its way to the keynote area where Palm was about to have a reception and short announcement. People were jazzed to hear more about the Pre, and Michael Abbott was there to open up access to developers: Today, Palm expanded the Mojo Read the rest…

Posted by Dion Almaer at 12:30 am
1 Comment

3.9 rating from 24 votes

Wednesday, April 1st, 2009

JsContext to make your JsUnitTest look purty

Category: JavaScript, Testing

Christian Johansen was sick of testNewUserWithClownShoesShouldSqueak code in his unit tests, so he took some inspiration from the Ruby Shoulda and Context frameworks and wrote JsContext which allows you to write: < View plain text > javascript new Test.Unit.Runner({     "A new User": JsContext({         "with clown shoes": JsContext({     Read the rest…

Posted by Dion Almaer at 4:14 am

3.3 rating from 18 votes