JavaScript


Wednesday, June 24th, 2009

MooTools: Saving the dollars, replacing document.write

Category: JavaScript

The religion behind a simple $ has been fierce in the Web world. MooTools has decided to make the Dollar Safe Mode which is similar to cousins such as jQuery.noConflict (in MooTools case it just looks for the $ function). Now you can just use document.id if you want to play in the wild, or Read the rest…

Posted by Dion Almaer at 6:28 am
5 Comments

+++--
3.6 rating from 38 votes

Friday, June 19th, 2009

NodeIterator.areYou(IMPRESSED | WHOCARES | WHA?)

Category: JavaScript

John Resig has posted on the DOM traversal methods now in Firefox 3.5 and then a spin out post on the merits of the NodeIterator API. He isn’t impressed: This API is, at best, bloated, and at worst incredibly misguided and impractical for day-to-day use. Observe the method signature of createNodeIterator: < View plain text Read the rest…

Posted by Dion Almaer at 2:09 pm
14 Comments

+++--
3.3 rating from 28 votes

Serial Asynchronous XmlHttpRequests

Category: Dojo, JavaScript

By default we should always favour asynchronous XHR to help the responsiveness of our Web applications. However, have you ever wanted a way to serialize your XHR calls because you needed to do things in sequence as B relied on what came back from A? You could call a synchronous Ajax call, but that locks Read the rest…

Posted by Dion Almaer at 6:45 am
12 Comments

++---
2.6 rating from 37 votes

Thursday, June 18th, 2009

JavaScript Compatibility Tests

Category: JavaScript, JSON

Robert Nyman has setup a really nice test suite for JavaScript 1.6, 1.7, and 1.8+ features such as getters/setters, Object.defineProperty, Object.getPrototypeOf, new String extras, and JSON. It includes compatibility tables, and will try to run the tests on your browser to give you feedback. It also includes sample code to check web browser support that Read the rest…

Posted by Dion Almaer at 10:25 am
2 Comments

++++-
4.4 rating from 22 votes

Named function expressions in incredible detail

Category: Articles, JavaScript

The intrepid JS hacker Juriy “kangax” Zaytsev has an incredibly detailed post on demystifying named function expressions: Surprisingly, a topic of named function expressions doesn’t seem to be covered well enough on the web. This is probably why there are so many misconceptions floating around. In this article, I’ll try to summarize both – theoretical Read the rest…

Posted by Dion Almaer at 6:22 am
10 Comments

++++-
4.2 rating from 38 votes

Monday, June 15th, 2009

Bing API does callback checking for JSON-P

Category: JavaScript, JSON, Library

I just looked through the API of Microsoft’s new Bing search and found an interesting step in protecting code from throwing errors. When you provide a JSON output for developers it does make sense to also allow for a callback parameter. That way your code can be used in script nodes without having to use Read the rest…

Posted by Chris Heilmann at 6:32 am
19 Comments

++---
2.3 rating from 33 votes

Friday, June 12th, 2009

JS.Class 2.1 released

Category: JavaScript, Ruby

James Coglan has updated JS.Class, his implementation of Ruby’s object system in JavaScript. This release includes a Hash implementation, HashSet, an updated Ruby 1.9 Enumerable module with enumerators and Symbol#to_proc functionality, and an improved package loader that supports parallel downloads and runs on SpiderMonkey, Rhino and V8. Detailed Changes New libraries: ConstantScope, Hash and HashSet, Read the rest…

Posted by Dion Almaer at 6:37 am
9 Comments

+++--
3.1 rating from 23 votes

InfoVis Toolkit 1.1

Category: JavaScript, Library

Nicolas Garcia Belmonte has updated InfoViz with version 1.1. The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web. The code has been updated: The library has been split into modules for code reuse. All visualizations are packaged in the same file. You can create multiple instances of any visualization. Moreover, Read the rest…

Posted by Dion Almaer at 5:34 am
4 Comments

++++-
4.3 rating from 31 votes

Thursday, June 11th, 2009

jQuery Tools

Category: JavaScript, jQuery

Tero Piirainen has created a new package of jQuery Tools. This library contains six of the most useful JavaScript tools available for today’s website. The beauty of this library is that all of these tools can be used together, extended, configured and styled. In the end, you can have hundreds of different widgets and new Read the rest…

Posted by Dion Almaer at 6:27 am
21 Comments

+++--
3.7 rating from 75 votes

Wednesday, June 10th, 2009

Ample SDK: Browser-in-a-Browser

Category: Framework, JavaScript

Sergey Ilinsky, formerly of Ajax pioneer Backbase, has created a new Ajax toolkit called Ample SDK. The best way to describe Ample SDK is that it’s a browser-within-a-browser, but not in the visual sense. Rather, it aims to implement in JavaScript the stack of rendering technologies typically delegated to the browser. For example, Ample currently Read the rest…

Posted by Ben Galbraith at 6:00 am
27 Comments

++++-
4 rating from 36 votes

Friday, June 5th, 2009

Moousture: mouse gesture library

Category: JavaScript, Library, MooTools

Zohaib Sibt-e-Hassan has created a Mootools based mouse gesture library Moousture that is based on simplicity: A probe, which probes the pointing device. Currently there is a Moousture.MouseProbe (P.S. I am planning to test it on iPhone and build any seprate probe for that). A monitor, which tests the stability of probed device on given intervals Read the rest…

Posted by Dion Almaer at 6:56 am
10 Comments

+++--
3.8 rating from 30 votes

Monday, June 1st, 2009

Narwhal: Standard Library that implements ServerJS

Category: JavaScript, Server

Narwhal “a flexible JavaScript standard library” is now live thanks to: Tom Robinson’s Jack: the web server and web application/framework agnostic interface, similar to Ruby’s Rack and Python’s WSGI. Narwhal was conceived while building Jack, and was later extracted into it’s own project. Kris Kowal’s Chiron: a system of interoperable JavaScript modules, including a type Read the rest…

Posted by Dion Almaer at 7:44 am
5 Comments

+++--
3.9 rating from 26 votes

Friday, May 22nd, 2009

JSPlacemaker – Geo data extraction in pure JavaScript

Category: Examples, JavaScript

Content extraction is still a hot topic on the web. We have lots of great text content but not much clue as to what those texts are. To make it more obvious we do term extraction for tagging but also geo location extraction for giving the text some spacial reference. A fairly new web service Read the rest…

Posted by Chris Heilmann at 9:28 am
2 Comments

+++--
3.6 rating from 29 votes

Thursday, May 21st, 2009

Cramdas; Don’t mess with the semantics of function, just let me stop typing it so often

Category: JavaScript

There are two types of code. A large pile of crap code, and a small pile of crap code. Favour the small. The above sentence was explained to Ben and I from a top notch IBM engineer who has written more code than I have had hot dinners. Less code is good. Less to read, Read the rest…

Posted by Dion Almaer at 9:23 am
29 Comments

+----
1.9 rating from 78 votes

Digg shows Multipart XMLHttpRequest prototype

Category: Ajax, JavaScript, Performance

Micah Snyder of Digg posted on DUI.Stream, an experimental library that implements a multipart XHR technique to bundle resources into one request and then breaks them out at the other end: One of the ways that high-performance websites like Yahoo suggest speeding up load times is by reducing the number of HTTP requests per page. Read the rest…

Posted by Dion Almaer at 7:31 am
19 Comments

++---
2.4 rating from 84 votes

Wednesday, May 20th, 2009

EcmaScript 5: Changes to JavaScript

Category: JavaScript

Three Googlers, Mark Miller, Waldemar Horwat, and Mike Samuel gave the talk above to discuss how JavaScript is changing, and gets into detail on EcmaScript 5. The slides that go along with the talk are available in good ole simple HTML prezo form and show that the talk discusses topics such as: Accessor support: < Read the rest…

Posted by Dion Almaer at 8:14 am
8 Comments

++++-
4.2 rating from 37 votes