Tuesday, November 20th, 2007 Central JavaScript Library URLs

Category: JavaScript, Library

Jon Davis has created CacheFile, a place to store versions of common libraries such as Dojo, jQuery, Ext, Prototype and more. Dojo has a nice CDN already thanks to AOL, and YUI thanks to Yahoo! The other libraries don’t have the same, so this could be the solution: is an HTTP web server that Read the rest…

Posted by Dion Almaer at 5:19 am

4 rating from 25 votes

Monday, November 19th, 2007

Squirrel IoC: Dependency Injection for JavaScript

Category: JavaScript

Mark Forster is a fan of IoC from his days in Spring-land. He found that he was “writing endless amount of code to just instantiate objects and wiring up dependencies in these objects” and decided that what was in order was Squirrel IoC. To see it in action, we can look at a simple example. Read the rest…

Posted by Dion Almaer at 6:53 am

2.4 rating from 36 votes

JavaScript Beautify

Category: JavaScript, Utility

We often talk about the latest scheme for compressing and minimizing our JavaScript. The JavaScript Beautify script aims to do the opposite. Often, you find a site that is doing something interesting and you want to learn how it works. You check out the source and it is cryptic gibberish. This is where the beautifier Read the rest…

Posted by Dion Almaer at 6:16 am

4.4 rating from 37 votes

Thursday, November 15th, 2007

Unobtrusive JavaScript – Rules to work by

Category: Accessibility, JavaScript, Unobtrusive JS

From what I’ve seen, it appears that many developers, especially those new to the JS space are somewhat confused by the reasons for developing JS in an unobtrusive fashion. Typical arguments that I’ve heard are: It takes too long to develop If they don’t have JavasScript, then they’re out of luck We shouldn’t have to Read the rest…

Posted by Rey Bango at 8:46 am

3.8 rating from 46 votes

JavaScript Madness: Keyboard Events

Category: JavaScript

Jan Wolter has done the ugly work of testing keyboard event handling across platforms and browses. He has a test script that you can run yourself. You get to read about cute variations: If a key is held down long enough it typically auto-repeats. (Note that modifier keys never auto-repeat.) In all browsers, each auto-repeat Read the rest…

Posted by Dion Almaer at 7:19 am

3.9 rating from 28 votes

Using the Yahoo Global Object to Manage Object Inheritance and Composition

Category: JavaScript, Yahoo!

The Yahoo! UI team have “posted four new examples that step through some of the most important methods in the YUI Library — particularly YAHOO.lang.extend, YAHOO.lang.augmentObject, and YAHOO.lang.augmentProto. These methods are used internally in the library to manage inheritance and composition, and we think you’ll find them useful in your own code, too.” Creating Class Read the rest…

Posted by Dion Almaer at 3:45 am

2.7 rating from 28 votes

Wednesday, November 14th, 2007

JavaScript Method Overloading

Category: JavaScript

John Resig has posted on JavaScript Method Overloading where he discusses the ability to run different code depending on the number of arguments passed into the same function name. The type of arguments are not considered, which is where JavaScript 2 comes in. The code he uses: < View plain text > javascript // addMethod Read the rest…

Posted by Dion Almaer at 11:29 am

3.3 rating from 50 votes

Tuesday, November 13th, 2007

Eye-Fi: Do you want Web 2.0 with your 2GB?

Category: Dojo, JavaScript, Showcase

I can just picture Dylan and Alex in a meeting with someone pitching: So, we want to have a flash memory card, and put an Ajax application on it. Well, they did it. Eye-Fi has launched and it combines WiFi with a 2GB card. With Eye-Fi, your photos can be automatically sent to any number Read the rest…

Posted by Dion Almaer at 12:47 pm

3 rating from 22 votes

HTML5 Media Support: video and audio tags and scriptability

Category: HTML, JavaScript, WebKit

WebKit keeps on trucking and has added support for the HTML 5 media tags such as <video> and <audio>. You can add video to a page as easily as: < View plain text > HTML <video src="" autoplay></video> That is a lot cleaner than the mess of embed/object/JavaScript wrappers that we have today. Also, there Read the rest…

Posted by Dion Almaer at 7:46 am

4.2 rating from 49 votes

Monday, November 12th, 2007

Making the OpenSocial API feel more at home

Category: JavaScript, Library, Prototype, Social Networks

Chris Chabot has been doing a lot of experimentation with the new OpenSocial APIs. He has written up his experience and created two prototype wrappers. The first short article has some general information and background. The second article includes the first library you can tell to load (owner, viewer, ownerFriends and/or viewerFriends) information, and presents Read the rest…

Posted by Dion Almaer at 9:10 am

3.9 rating from 29 votes

Capability JavaScript: JavaScript isn’t Caja

Category: JavaScript, Security

We talked about the new Google Caja project which tries to make JavaScript safer by processing it and putting it in namespace sandboxes. Now, Ben Laurie of Google comes out and talks about it. There is a spec: Using Caja, web apps can safely allow scripts in third party content. The computer industry has only Read the rest…

Posted by Dion Almaer at 8:09 am

3.3 rating from 17 votes

John Resig plays with ECMAScript 4

Category: JavaScript, Screencast

With all of the talk about ECMAScript 4, instead of opining about it, how about taking it for a test drive? John has developed a screencast on how to start playing right away: Read up: ECMAScript 4 White Paper – This is a broad overview of all the features that are in the language along Read the rest…

Posted by Dion Almaer at 7:50 am

3.3 rating from 18 votes

Get rid of the IE iframe “click”

Category: IE, JavaScript, Tip

I am sure you have run into this before. You are on a site, interacting with a single page app, and then you hit the back button and IE clicks at you. The navigation “click” happens with iframes, and be a nuisance if you are trying to use iframes in a non-navigational way. Julien Lecomte Read the rest…

Posted by Dion Almaer at 7:33 am

4.1 rating from 30 votes

Friday, November 9th, 2007

Pseudo-custom events in Prototype 1.6

Category: Articles, Examples, JavaScript, Prototype

Andrew Dupont has written a tutorial on how to normalize proprietary browser events using Prototype’s new custom events feature. The piece is interesting as it talks about how the Prototype core team originally went down the wrong path trying to boil the ocean with great features that were a bit too much. And then: we Read the rest…

Posted by Dion Almaer at 11:35 am

4 rating from 48 votes

JavaScript 2: News and Opinion

Category: JavaScript

Brendan has been talking about ES4 for a long time now, and we have been a little surprised at how little people had been paying attention to it. But, of course, it is like an election. People ignore it until it gets close and then they look at the issues “oh wait a minute. that Read the rest…

Posted by Dion Almaer at 11:27 am

3.6 rating from 25 votes

Thursday, November 8th, 2007

Isomorphic SmartClient: Now Open Source

Category: Announcements, JavaScript, Library

Isomorphic has made a leap of faith to a new opensource business model today. They have freed up their SmartClient Ajax platform by releasing it under the LGPL license. The piece that has been opensourced “includes the typical set of Ajax UI components that are now available from several vendors, but goes beyond the standard Read the rest…

Posted by Dion Almaer at 1:47 pm

3.4 rating from 45 votes