JavaScript


Monday, April 5th, 2010

Prototype 1.7 RC Sizzles…

Category: JavaScript, Library, Prototype

Andrew Dupont and the the Prototype team have announced the first RC of Prototype 1.7 which changes the selector engine to Sizzle, a new event API, has new layout/dimensions API, and more. Element#on Element#on is a new way to access the Prototype event API. It provides first-class support for event delegation and simplifies event handler Read the rest…

Posted by Dion Almaer at 1:34 pm
8 Comments

++++-
4 rating from 48 votes

Friday, April 2nd, 2010

A very detailed look at object to primitive conversions

Category: JavaScript

Ben Cherry continues to write nice detailed posts on JavaScript. This time he delves into the magic of Object – primitive conversions. He post has some good fodder for wtfjs as he shows details of toString, valueOf, and implicit fun. Take a simple example like population: < View plain text > javascript function population(country, pop) Read the rest…

Posted by Dion Almaer at 8:10 am
8 Comments

+++--
3.8 rating from 14 votes

Thursday, April 1st, 2010

Stop sniffing my breadcrumbs!

Category: CSS, JavaScript, Mozilla, Security

Chris Blizzard has done a nice roundup of David Baron’s post, the bug and the post on the security blog which discusses the :visited issue. We have seen :visited sniffing for good as well as ill (Aza wrote about using it to detect what networks you are on which can help you put up the Read the rest…

Posted by Dion Almaer at 12:01 am
5 Comments

++++-
4.1 rating from 14 votes

Wednesday, March 31st, 2010

jQuery one-line plugin to crash IE6

Category: Browsers, JavaScript

Malicious code that targets browsers has quite some history and it gets bizarre when you see just how easy it can be to crash a certain browser. If you remember, an input type of “crash” used to kill IE6. Now there is an interesting one line jQuery plugin to crash IE6 available: < View plain Read the rest…

Posted by Chris Heilmann at 9:23 am
19 Comments

+++--
3.5 rating from 28 votes

text/x-artwork with some coffee and graphics

Category: JavaScript, Showcase

Chris Lloyd has a fun demo that randomly shows off some art using CoffeeScript and Raphael in an interesting way. There is some choice coffee in there: < View plain text > javascript for tag in document.getElementsByTagName(‘script’) when tag.type is ‘text/x-artwork’         eval(CoffeeScript.compile(tag.innerHTML)) The coffee creates some Art which is encapsulated as: Read the rest…

Posted by Dion Almaer at 6:26 am
3 Comments

+----
1.2 rating from 452 votes

Tuesday, March 30th, 2010

JSINQ 1.0: now fully supports .NET 3.0 query operators

Category: Database, JavaScript

Kai Jäger’s JSINQ has now gotten to the long sort after 1.0 release. Kai has kindly shared a few thoughts on the release and the project: I’m happy to announce that one year after its initial release, JSINQ is now stable and packed with new features. Just like the previous version, JSINQ supports the complete Read the rest…

Posted by Dion Almaer at 6:25 am
6 Comments

+++--
3.1 rating from 27 votes

Monday, March 29th, 2010

jQuery Special Events; Virtually… not in Real Life

Category: JavaScript, jQuery

Ben Alman has a mother of a post on his special events work for jQuery. I have a special penchant for custom events and the like, even though I have abused them just as I did in the old days of AOP! :) What are special events? The jQuery special events API is a fairly Read the rest…

Posted by Dion Almaer at 3:08 pm
4 Comments

+++--
3.7 rating from 39 votes

Thursday, March 18th, 2010

RequireJS: Asynchronous JavaScript loading

Category: JavaScript, Node, Performance

A certain someone was talking to me about how they find it interesting that node.js, the JavaScript server framework du jour which loves all things async, starts life with a bunch of synchronous require() calls. Now, this is actually quite fine since the startup of the server is not the issue at hand. However, if Read the rest…

Posted by Dion Almaer at 6:15 am
19 Comments

+++--
3.8 rating from 31 votes

Tuesday, March 16th, 2010

Sputnik gets more tests; How compliant are the browsers?

Category: JavaScript

The Chromium folk have posted about JavaScript conformance as they release a test runner for Sputnik, that allows you to easily run the complete test suite from within your browser: Sputnik touches all aspects of the JavaScript language defined in the 3rd edition of the ECMA-262 spec. In many ways it can be seen as Read the rest…

Posted by Dion Almaer at 6:34 am
Comment here

++++-
4.4 rating from 20 votes

Monday, March 15th, 2010

A deep dive and analysis of the JavaScript Module pattern

Category: JavaScript

Ben Cherry has a really nice detailed analysis of the module pattern. He starts with the simple pattern that Crock-y documented back in the day….. and then goes on to discuss augmentation (loose and strict) and then deeper into some cool patterns: Cloning and Inheritance < View plain text > javascript var MODULE_TWO = (function Read the rest…

Posted by Dion Almaer at 6:38 am
8 Comments

+++--
3.5 rating from 20 votes

Thursday, March 11th, 2010

YQL Geo library – all your geo needs in pure JavaScript

Category: Geo, JavaScript, Library

I just finished doing some talks on geo hacking (slides are available here) and how to use some of the Geo technologies Yahoo and Google provide as part of a University gig in Atlanta. As a lot of the students liked the idea of APIs like GeoPlanet and Placemaker but had a hard time getting Read the rest…

Posted by Chris Heilmann at 10:04 am
4 Comments

++++-
4.7 rating from 25 votes

Monday, March 8th, 2010

modulr: a CommonJS module implementation in Ruby for client-side JavaScript

Category: JavaScript, Ruby

modulr is a CommonJS module implementation in Ruby for client-side JavaScript Ruby? what does that have anything to do with it? Ah, its from one of those Prototype guys isn’t it…. Yup, Tobie is at it again, this time with modulr: modulr accepts a singular file as input (the program) on which is does static Read the rest…

Posted by Dion Almaer at 6:28 am
7 Comments

++---
2.2 rating from 33 votes

Saturday, February 27th, 2010

Mozilla JägerMonkey: Method based JIT + Trace based JIT = speed

Category: JavaScript, Mozilla, Performance

David Anderson: “TraceMonkey has rocket boosters, so it runs really fast when the boosters are on, but the boosters can’t always be turned on.” Opera’s new JIT compiler Carakan is doing well as we just posted. What is Mozilla doing with TraceMonkey? A lot. Mozilla JägerMonkey adds method based JIT (of V8 and Nitro fame) Read the rest…

Posted by Dion Almaer at 12:05 am
4 Comments

++++-
4.6 rating from 24 votes

Thursday, February 25th, 2010

EnhanceJS: A library to progressively enhance

Category: Accessibility, JavaScript, Library

EnhanceJS is a new library from the Filament Group, who are serious about progressive enhancement and accessibility. What is EnhanceJS? EnhanceJS is a new JavaScript framework (a single 2.5kb JavaScript file once minified/gzipped) that that automates a series of browser tests to ensure that advanced CSS and JavaScript features will render properly before they’re loaded Read the rest…

Posted by Dion Almaer at 6:42 am
22 Comments

++---
2.8 rating from 46 votes

Tuesday, February 23rd, 2010

jsFiddle: a Web playground

Category: Debugging, JavaScript, Utility

Piotr Zalewa has created a really great playground, jsFiddle, for testing sample code and playing with the Web. With an area for the holy trinity of the Web (HTML, CSS, JS) and an output region, you can get right to hacking. It goes beyond this though. You can also add resources, an Ajax echo backend, Read the rest…

Posted by Dion Almaer at 6:57 am
16 Comments

+++--
3.3 rating from 126 votes

Friday, February 19th, 2010

jQuery 1.4.2: performance and a few APIs

Category: JavaScript, jQuery

jQuery 1.4.2 has been released today and it comes with some performance bumps (aggressive ones according to Taskspeed). Benchmarks are challenging, and John even calls that out: For example, we saw significant overall performance speed-ups in Taskspeed simply by optimizing the $(“body”) selector because it’s called hundreds of times within the tests. Additionally we saw Read the rest…

Posted by Dion Almaer at 6:59 pm
23 Comments

+++--
3.5 rating from 79 votes