Showing posts with label js. Show all posts
Showing posts with label js. Show all posts
Wednesday, March 9, 2011
Passing Second-Class Arguments
Passing Second-Class Arguments
Wednesday, February 23, 2011
Proxy and the ES5 (Harmony) Proxy
Proxy and the ES5 (Harmony) Proxy
Tuesday, December 21, 2010
Clear options in a MULTI-SELECT field without loops
Perhaps I've never had to auto-select OPTION elements in a multi-SELECT field, but I discovered a simple method for doing so, that was worth noting.
Clear options in a MULTI-SELECT field without loops
Sunday, September 12, 2010
Learning to Open-Source via Proxy
Learning to Open-Source via Proxy
Friday, August 20, 2010
The smallest boolean in JavaScript
The smallest boolean in JavaScript
Friday, July 30, 2010
Use JavaScript comment-urls instead of the traditional void(0) method
Use JavaScript comment-urls instead of the traditional void(0) method
Friday, July 23, 2010
Inferring node placement via special sourceIndex values
I needed to know whether a node was in the DOM. Figuring there was a native property or method towards this end, I scoured Mozilla's documentation but could find nothing. Then Microsoft (yes, them) offered hope with Internet Explorer's sourceIndex property:
Retrieves the ordinal position of the object, in source order, as the object appears in the document's all collection.
Inferring node placement via special sourceIndex values
Monday, July 19, 2010
w3c browsers fire bubble listeners before capture listeners
w3c browsers fire bubble listeners before capture listeners
Wednesday, July 14, 2010
Internet Explorer doesn't bubble click events to the window
Internet Explorer doesn't bubble click events to the window
Debug easier by naming your closures
I was profiling some code when I noticed that several routines were listed as "(?)()" in Firebug, and "JScript anonymous function" in MS's Visual Studio. This proved frustrating, as recognizing my closures were critical to evaluating my code - I couldn't tell which were performing well, let alone executing.
Debug easier by naming your closures
Internet Explorer sanitizes events between nodes
I'm not here to gripe about how IE's event object doesn't adhere to standards, nor offers alternatives. Really, I'm not. This is actually a surprising discovery that has less to do with the standard IE/MS diatribe, and more to do with a unique aspect of their event object.
Internet Explorer sanitizes events between nodes
Subscribe to:
Posts (Atom)