JavaScript


Wednesday, December 19th, 2007

3D Panorama in JavaScript

Category: JavaScript, Library

John Dyer has created his own 3D panorama trick in JavaScript. His code takes a large panorama, and “creates a series of div columns, and then puts copies of the image in each column. As you move your mouse across the image, it stretches the columns vertically along a sin curve to fake the 3D Read the rest…

Posted by Dion Almaer at 8:53 am
6 Comments

+++--
3.4 rating from 42 votes

Comparing the evolution of Java and JavaScript

Category: Articles, Java, JavaScript

Java and JavaScript share the first four letters of their name, and have an entangled past. Joe Walker has an interesting little take on the evolution of the languages that shows some mirror images such as: It’s interesting that the current simple version of JavaScript already has the features (i.e. closures) that people want to Read the rest…

Posted by Dion Almaer at 7:46 am
8 Comments

+++--
3.7 rating from 21 votes

Tuesday, December 18th, 2007

DOMAssistant 2.5 released – Making a run at the the major JavaScript libraries

Category: Ajax, JavaScript

Robert Nyman has his eyes set on providing a JavaScript library that can hold it’s own against the major players. He just announced the release of DOMAssistant 2.5 with enhancements that he feels are on par with other libraries: With this release of DOMAssistant, I feel that it can seriously compete with the major JavaScript Read the rest…

Posted by Rey Bango at 7:00 am
8 Comments

+++--
3.5 rating from 37 votes

State of ECMAScript Implementations

Category: JavaScript

John Resig has done some research on the state of ECMAScript 4 implementations: I’ve just completed my first survey of the current ECMAScript 4 implementations. I went through and attempted to compile as many bugs and features as possible, as stated by the ECMAScript 4 specification and double-check them against all the actively-maintained implementations. You Read the rest…

Posted by Dion Almaer at 6:54 am
1 Comment

+++--
3.7 rating from 18 votes

Working aroung the instanceof memory leak

Category: JavaScript, Tip

Gino Cochuyt spent some hours to find the cause of memory leaks in IE when using instanceof. He found at least 3 Objects that cause the memory leaks: window document element Just using – if (window instanceof Object) – for example causes a memory leak! that grows by 50 KB per refresh; the reason for Read the rest…

Posted by Dion Almaer at 2:50 am
21 Comments

+++--
3 rating from 22 votes

Monday, December 17th, 2007

WireIt: Yahoo! Pipes Canvas Wiring API

Category: Canvas, JavaScript, Library, UI, Widgets, Yahoo!

Eric Abouaf has released WireIt, a library that answers the though: “wow, I wish there was an API that did the UI bits that Yahoo! Pipes does.” WireIt uses canvas, excanvas for IE, and YUI to get the job done. Take a look at the docs to see how it works. Here is the code Read the rest…

Posted by Dion Almaer at 9:00 am
Comment here

+++--
3.8 rating from 41 votes

3D-style animation in JavaScript

Category: JavaScript

Joonas Lehtinen of IT Mill has shown us something that we should probably never do. As a proof of concept he decided to see if it was “possible to do a 3D-style animation in plain JavaScript without Flash, SVG, Canvas or any other fancy stuff.” He ended up with a solution that: Slice a image Read the rest…

Posted by Dion Almaer at 5:23 am
9 Comments

++---
2.8 rating from 69 votes

Friday, December 14th, 2007

GWT Can Do Spinners?

Category: GWT, JavaScript

I’m not really accustomed to seeing a lot of UI press about GWT so I was pleasantly surprised when Dietrich Kappe showed me the new spinner control he’s been working on. Most of you have probably seen Flash-based implementations, especially on Amazon, where images spin on a type of carousel. It’s a very cool effect. Read the rest…

Posted by Rey Bango at 5:30 pm
8 Comments

+++--
3.9 rating from 65 votes

The problem with innerHTML

Category: Articles, JavaScript, Tip, Yahoo!

Some like to DOM their way around. Others prefer the simplicity of innerHTML. Julien Lecomte, of Yahoo!, wrote up his thoughts on the problems with innerHTML. Julien first points out some issues: Improper handling of the innerHTML property can enable script-injection attacks on Internet Explorer when the HTML string contains a script tag marked as Read the rest…

Posted by Dion Almaer at 7:41 am
18 Comments

+++--
3.8 rating from 72 votes

Tuesday, December 11th, 2007

Sucking in Dojo, YUI, or jQuery into any page

Category: JavaScript, Tip

Gareth Rushgrove has been having fun with Jash, the cross browser shell (if you miss Firebug as you are in Safari land, give it a go) and has bookmarklets that allow you to debug web pages with jQuery or Dojo, or YUI. Suck in your framework of choice, and start dinking around on the fly.

Posted by Dion Almaer at 6:18 am
2 Comments

+++--
3.9 rating from 30 votes

Monday, December 10th, 2007

Bindows 4: Clocks, Faces, and more.

Category: JavaScript, Library

Bindows 4 is out in beta and it has many new features. One new major component is Bindows Faces which “is a components library that enables you create powerful Ajax web applications with a Windows look-and-feel – using Java through JSF.” If you run the demo you will see the look and feel. On my Read the rest…

Posted by Dion Almaer at 8:25 am
16 Comments

++++-
4 rating from 98 votes

Ajax Cross Domain Script

Category: Ajax, JavaScript, Library

Bart Van der Donck has released his script to do Ajax Cross Domain scripting. You download the ACD.js script and then you can do things like this hello world: < View plain text > HTML <script type="text/javascript" src="http://www.ajax-cross-domain.com/cgi-bin/ACD/ACD.js?uri=(http://216.92.176.52/?name=john)"></script> <script type="text/javascript">alert(ACD.responseText);</script> Here is how it works: I love how the learning curve has been defined for Read the rest…

Posted by Dion Almaer at 6:16 am
3 Comments

+++--
3 rating from 102 votes

Friday, December 7th, 2007

Making sure you get new instances in JavaScript

Category: JavaScript, Tip

John Resig has posted on simple class instantiation, which delves into the nasty little bug that people can run into: < View plain text > javascript var foo = User(…); // forgot to use the "new" operator The magic “new” changes the scoping, allowing “this” to do the right thing. John walks through an example, Read the rest…

Posted by Dion Almaer at 2:45 am
19 Comments

++---
2.7 rating from 49 votes

Wednesday, December 5th, 2007

YUI 2.4.0 Released

Category: Announcements, JavaScript, Yahoo!

The YUI library has one of the longest release cycles around but when they put out a release, the team definitely makes it worth it. Yahoo! just released YUI v2.4.0 with a host of new features that will surely please the YUI faithful. New Selector Engine In YUI 2.4.0, the Yahoo! team introduces it’s first Read the rest…

Posted by Rey Bango at 6:00 am
5 Comments

+++--
3.8 rating from 35 votes

Tuesday, December 4th, 2007

Upcoming Changes to the JavaScript Language

Category: JavaScript, Presentation

Waldemar Horwat and Pascal-Louis Perez gave a tech talk at Google where they walk us through the new features of ECMAScript ES4: After eight years of work in the standards committee, JavaScript will soon get an update. We present the highlights and rationales of the proposed changes to JavaScript. The fourth edition of the ECMAScript Read the rest…

Posted by Dion Almaer at 7:56 am
9 Comments

+++--
3.2 rating from 25 votes

Nintendo ES Operating System on JavaScript

Category: JavaScript

Jon Hartmann pointed us to the new Nintendo ES Operating System that “is a fairly interesting looking open source research OS created by Nintendo. Runs natively on x86 (and qemu of course), kernel is written in C++, uses an ECMAScript interpreter for all of the userland, uses Cairo for graphics, and even has a port Read the rest…

Posted by Dion Almaer at 12:11 am
Comment here

++++-
4.1 rating from 19 votes