JavaScript


Friday, May 9th, 2008

Processing.js: Port of the Processing language to JavaScript and Canvas

Category: Canvas, JavaScript

John Resig has completed 7 months of work to produce a port of Processing, the “programming language and integrated development environment (IDE) built for the electronic arts and visual design communities”, which aims to teach the basics of computer programming in a visual context, and to serve as the foundation for electronic sketchbooks. One of Read the rest…

Posted by Dion Almaer at 12:54 am
11 Comments

++++-
4.5 rating from 44 votes

Thursday, May 8th, 2008

Ajax Pioneer Week: Alex Russell of Dojo

Category: Dojo, Interview, JavaScript

Last, but never least, is Alex Russell of the Dojo Toolkit and SitePen. In Alex’s five minutes of video footage for our JavaOne talk, he explained how Dojo enables you to built fantastic, responsive applications for everyone. The everyone piece revolves around accessibility too, which is core to Dojo thanks to work from Becky Gibson Read the rest…

Posted by Dion Almaer at 11:51 am
3 Comments

+++--
3.8 rating from 35 votes

Growl for Windows and a Web Notification API

Category: Gears, JavaScript

I have talked before about the desire for a Notification API on the Web. As a Mac user, I would love to see Growl from JavaScript, and there have been libraries written from as far back as protoGrowl. The difference is between a JavaScript API that does notifications on the desktop, versus trying to get Read the rest…

Posted by Dion Almaer at 11:38 am
8 Comments

++++-
4 rating from 28 votes

Location APIs: The Discussions

Category: Gears, JavaScript

The Gears community is discussing a Geo Location API, which Aaron Boodman mentioned “was recently proposed to the W3C WebAPI group.” Aza Raskin just posted today about Geolocation in Firefox and Beyond which covers his thoughts on an API. I thought it would be fun to look at the proposed APIs: Gears Examples < View Read the rest…

Posted by Dion Almaer at 8:09 am
2 Comments

+++--
3.9 rating from 14 votes

Wednesday, May 7th, 2008

The seven rules of pragmatic progressive enhancement

Category: JavaScript, Tutorial, Unobtrusive JS, Usability

I’ve been talking about progressive enhancement here before and got a lot of flak in comments about it. It seemed that there was a general misunderstanding of progressive enhancement and unobtrusive scripting as a “passing fad” or “backward facing rather than being innovative”. I was asked by a design agency in London to go there Read the rest…

Posted by Chris Heilmann at 5:58 pm
3 Comments

++++-
4 rating from 21 votes

Ajax Pioneer Week: John Resig of jQuery

Category: Interview, JavaScript, jQuery, Presentation

John Resig got in front of the camera, and the projector, as he gives us his thoughts on the state, and future of Ajax. He starts out by discussing jQuery Core, and the features in the near term (1.2.4), short term (1.3) and beyond. He then delves into the UI side of the house with Read the rest…

Posted by Dion Almaer at 1:14 pm
1 Comment

+++--
3.6 rating from 59 votes

Lazily load functionality via Unobtrusive Scripts

Category: JavaScript, Prototype

David Kees has written about Using Prototype to Load Javascript Files, which is an implementation of the general technique of loading functionality via scripts based on the availability of DOM elements. He started using the technique to scratch an itch: The calendar on this site only appears on pages that show blog-related information. That calendar Read the rest…

Posted by Dion Almaer at 1:02 pm
15 Comments

++++-
4.1 rating from 46 votes

Monday, May 5th, 2008

HTML Parser in JavaScript

Category: HTML, JavaScript

John must have had some downtime on Sunday afternoon, as he implemented an HTML parser in JavaScript. The library, that you can play with via this demo, lets you attack HTML in a few ways: A SAX-style API Handles tag, text, and comments with callbacks. For example, let’s say you wanted to implement a simple Read the rest…

Posted by Dion Almaer at 10:51 am
4 Comments

+++--
3.2 rating from 37 votes

Compression using Canvas and PNG

Category: Canvas, JavaScript

The image above is the 124 kilobyte Prototype library embedded in a 30 kilobyte 8 bit PNG image file. Jacob Seidelin had some fun this weekend it appears and created a script that can read in JavaScript code from images. To do this, he used the canvas getImageData() method. Here are the detailed steps: The Read the rest…

Posted by Dion Almaer at 10:28 am
20 Comments

++++-
4.6 rating from 40 votes

Friday, May 2nd, 2008

We are JavaScript library authors. Hear us roar!

Category: Browsers, CSS, JavaScript

John Resig “doesn’t think there’s a single JavaScript developer who isn’t excited about the new Selectors API specification (and the upcoming implementations).” He was asked to provide feedback on the API, and he sent them an email with just that. He had three concerns: DOMElement.querySelectorAll returning incorrect elements This is the most critical issue. As Read the rest…

Posted by Dion Almaer at 10:40 am
2 Comments

+++--
3.9 rating from 27 votes

Emulating get, set, catchall for all browsers

Category: JavaScript, Library

Adrien Friggeri likes the true get, set, and catchalls that almost all but IE provide, so he took a peak at the examples and got to work emulating the layer, which ended up with: < View plain text > javascript var o = CGSobject(function (x) { return x+1; });   // basic set o("a", 7); Read the rest…

Posted by Dion Almaer at 10:27 am
2 Comments

+++--
3.1 rating from 14 votes

Wednesday, April 30th, 2008

JavaScript Type Inference in IDEs

Category: JavaScript, Utility

Tor Norbye has posted about the type inference that NetBeans has with JavaScript: Roman Strobl has just published a screencast of the new JavaScript editor in NetBeans 6.1. The demo is around 5 minutes and highlights many of the editing features. I’d like to dwell on the type inference part a bit. Around four minutes Read the rest…

Posted by Dion Almaer at 6:57 am
2 Comments

++++-
4.1 rating from 19 votes

Monday, April 28th, 2008

Aptana Cloud: Develop on your desktop, sync out to the cloud

Category: Aptana, Cloud, JavaScript

Aptana have announced their cloud platform initiative, Aptana Cloud. Aptana Cloud plugs right into your IDE to provide instant deployment, smart synchronization, and seamless migration as you scale. Aptana Cloud is ideal for developers who use scripting languages to create Ajax, Facebook, mySpace and all other sorts of Web applications. The key is that this Read the rest…

Posted by Dion Almaer at 2:41 pm
6 Comments

++++-
4 rating from 29 votes

FancyUpload: Swiff meets Ajax

Category: Component, Flash, JavaScript, MooTools

Harald Kirschner has created a new version of FancyUpload “a file-input replacement which features an unobtrusive, multiple-file selection menu and queued upload with an animated progress bar.” A good example is the Queued Photo Uploader which is coded by: < View plain text > javascript var swiffy = new FancyUpload2($(‘demo-status’), $(‘demo-list’), {     ‘url’: Read the rest…

Posted by Dion Almaer at 8:37 am
3 Comments

++++-
4.4 rating from 88 votes

Coherent: Cocoa Databinding for Ajax

Category: JavaScript, Library

Jeff Watkins is a fan of the Cocoa data binding model, and wanted to bring it to the Web. This lead him to create a projects three years ago, which comes out of the dark now: Coherent. There are some fun demos, such as the Flickr Browser, and the Laptop configurator which mimics the Apple Read the rest…

Posted by Dion Almaer at 7:57 am
5 Comments

+++--
3 rating from 15 votes

Java in JavaScript

Category: Games, Java, JavaScript

As John Resig reports, the Japanese Shibuja.JS user group managed to port (at least in parts) the Java Virtual Machine over to JavaScript. The project is called Orto and there is a Japanese PDF explaining the details (I guess) available on John’s site. Using this you can convert Java code into bytecode and embed it Read the rest…

Posted by Chris Heilmann at 1:26 am
6 Comments

+++--
3.9 rating from 16 votes