Friday, May 23rd, 2008

JavaScript Super Mario Kart

Category: Games, JavaScript

Jacob Seidelin keeps on going, and has created a Super Mario Kart prototype: It uses the canvas element to do most of the rendering and should work in both FF2, FF3, Opera(9.27 and beta) and Safari 3.1.1. There are a few glitches in Safari in the kart sprites, but other than that it should be Read the rest…

Posted by Dion Almaer at 6:55 am

4.3 rating from 48 votes

Thursday, May 22nd, 2008

PersistJS: Cross Browser Client-Side Persistent Storage

Category: JavaScript, Storage

Paul Duncan announced today the release of PersistJS, a client-side JavaScript persistent storage library. Currently the only reliable cross-platform and cross-browser mechanism for storing data on the client side are cookies. Unfortunately, using cookies to store persistent data has several problems: * Size: Cookies are limited to about 4 kilobytes in size. * Bandwidth: Cookies Read the rest…

Posted by Rey Bango at 2:46 pm

4.1 rating from 33 votes

The other JIT: JavaScript Information Visualization Toolkit

Category: JavaScript

Nicolas Garcia Belmonte has written a different JIT, the JavaScript Information Visualization Toolkit. The JIT is an advanced JavaScript infovis toolkit based on 5 papers about different information visualization techniques. The JIT implements advanced features of information visualization like Treemaps (with the slice and dice and squarified methods), an adapted visualization of trees based on Read the rest…

Posted by Dion Almaer at 4:16 am

4.3 rating from 27 votes

Wednesday, May 21st, 2008

Stack: A native Array wrapper that works

Category: JavaScript, Library, Performance

Andrea Giammarchi has created a native array wrapper that works across browsers. He is excited: I do not know how many times, during this years, JavaScript Ninjas have tried to subclass the native Array to create libraries over its powerful methods without losing performance. I have finally discovered the way to remove the locked length Read the rest…

Posted by Dion Almaer at 10:00 am

4.2 rating from 21 votes

Tuesday, May 20th, 2008

moo.rd 1.3 released

Category: JavaScript, Library

The moo.rd team has released version 1.3.1 of the moo.rd extension and seems to be almost a rewrite, nowbased on MooTools 1.2 so it uses the new MooTools syntax and logic. The team told us about the release: This release features new components like the Cycle Effects and Cycles Effects which allows to create powerful Read the rest…

Posted by Dion Almaer at 8:01 am

1.1 rating from 111 votes

Monday, May 19th, 2008

dojox.lang.aspect: More than just interception

Category: Dojo, JavaScript, Library

Eugene Lazutkin has written a very thorough post on dojox.lang.aspect a module that takes AOP seriously in JavaScript. As someone who has been to a couple AOSDs (the AOP software conference) and was excited to see AOP on the scene, it is good to see someone who gets it working on the JavaScript side. Of Read the rest…

Posted by Dion Almaer at 7:53 am

3.5 rating from 33 votes

Having a Tamarin trace a Spidermonkey

Category: Firefox, JavaScript, Performance

David Mandelin has posted about Tracehydra, which is the idea that the traced based JIT engine that is being worked on as part of Tamarin could be hooked up to Spidermonkey. Tracehydra would be the fluffy cloud that translates Spidermonkey bytecode to Tamarin IL (or possibly LIR-the details get confusing fast). (In the interest of Read the rest…

Posted by Dion Almaer at 7:15 am

3.2 rating from 17 votes

Some more JavaScript performance tips

Category: JavaScript, Performance

Thierry Schellenbach has written up some thoughts about JavaScript optimization for Prototype apps after playing with console.profile() / console.profileEnd() in his Prototype applications. The core advice is pretty simple: Beware of $$ and event binding Beware of other Prototype methods (reports a 40 times speed different between innerHTML and element.update) Write to innerHTML instead of Read the rest…

Posted by Dion Almaer at 7:09 am

3.3 rating from 38 votes

Friday, May 16th, 2008

Cubescape: Isometric Pixel Fun

Category: Games, JavaScript, jQuery

Ever wanted to create your own isometric pixel picture, but didn’t know what the word isometric meant? Well, now you can fulfill your wildest dreams with Cubescape! That is the headline for Cubescape, a site that released a new jQuery based front end that lets you drop the cubes! Perfect for a Friday, go ahead Read the rest…

Posted by Dion Almaer at 8:37 am

3.9 rating from 53 votes

A new spin on the datepicker control

Category: JavaScript, jQuery

Just when you thought that datepickers had been played out, along comes Filament Group and puts a whole new spin on it. Working from Mark Grabanski’s jQuery UI DatePicker control, the team substantially enhanced the UI with a host of new features including: shortcut links to preset date ranges, for example, “Past 30 days” or Read the rest…

Posted by Rey Bango at 6:51 am

3.4 rating from 48 votes

Spring WebFlow 2.0; JavaScript Module Released

Category: Dojo, Java, JavaScript, Library

Spring Web Flow 2.0 has been released which includes a new Spring JavaScript module. Here is an example of an onclick wrapper calling an Ajax event: < View plain text > HTML <a id="prevResultsLink" href="search?searchString=${searchCriteria.searchString}&page=${ – 1}">Previous Results</a> <script type="text/javascript">     Spring.addDecoration(new Spring.AjaxEventDecoration({         elementId: "prevResultsLink",         event: Read the rest…

Posted by Dion Almaer at 12:01 am

3.9 rating from 81 votes

Thursday, May 15th, 2008

Split the Initial Payload; Why are we sending all JavaScript down in one go

Category: JavaScript, Performance

Steve Souders has another insightful post where he discusses splitting the initial payload for the JavaScript in your page / application. Steve first outlines how JavaScript can affect how the browser renders a page: The growing adoption of Ajax and DHTML means today’s web pages have more JavaScript than ever before. The average top ten Read the rest…

Posted by Dion Almaer at 7:41 am

3.8 rating from 32 votes

Doctype: You want tests with your copy?

Category: Google, JavaScript

Doctype is an exciting beast, and for many reasons. Having a place to collect this data is key, and as I said yesterday, I can’t wait to see it grow as an open resource. The other cool part of Doctype is that there are tests to backup claims. This seems like a “no brainer” as Read the rest…

Posted by Dion Almaer at 5:47 am
1 Comment

3.9 rating from 20 votes

Wednesday, May 14th, 2008

Polling for loaded content instead of simple setTimeout

Category: JavaScript, Library, Tip

Have you ever found yourself doing little setTimeout calls as you wait for content to be loaded asynchronously? It seems to happen pretty frequently, and Paul Irish has created a simple utility to help run code when the library you need is loaded. With his executeWhenLoaded(function, objects, that, must, be, present) you can do something Read the rest…

Posted by Dion Almaer at 8:58 am

2.8 rating from 20 votes

xmake: a JavaScript make-like utility

Category: JavaScript, Utility

Peter Michaux has created a make, or rake-like utility for JavaScript called xmake. You create a Xmakefile.js such as < View plain text > javascript / defines println require(‘helpers’);   xmake.task(‘low’, function() {   println(‘low’); });   xmake.task(‘mid1’, [‘low’], function() {   println(‘mid1’); });   xmake.task(‘mid2’, [‘low’], function() {   println(‘mid2’); });   xmake.task(‘high’, [‘mid1’, Read the rest…

Posted by Dion Almaer at 8:53 am

2.6 rating from 20 votes

Monday, May 12th, 2008

Everything you wanted to know about String performance

Category: JavaScript, Performance

Tom Trenka has detailed a great analysis of JavaScript performance across the various browsers. This is important work, and it reminded me of the JVM days where people tried to use pools and such… to find out that they were bad for performance as newer VM technology came out. When you try to be too Read the rest…

Posted by Dion Almaer at 8:34 am
Comment here

4.3 rating from 18 votes