JavaScript

jQuery.parseJSON

The other day I was re-watching (haha, learning through repetition) "11 More Things I Learned from the jQuery Source" and this time I was quite amazed when Paul Irish talked about parseJSON. And the reason was the way jQuery makes the JSON object, it's clever, it's very clever.

HTMLCollections & NodeLists

Most of us believed, at least for some time, that in our DOM Scripting, we always dealt with arrays in our JavaScript:

1
2
3
var myLinks = document.getElementsByTagName('a'); // we have three links

myLinks.length; // "3"

Using innerHTML

innerHTML is a read/write property of a DOM element that gets/sets the HTML contained in the element.