Monthly Archives: September 2006

Javascript OOP

I linked a while ago to an article that I thought was doing OOP right in Javascript. It turns out that it wasn’t quite. Under that system, constructors can’t have parameters and other badness.
After working out the details, here’s what I found. Start with a base class A and derive a class [...]

Greasemonkey closures

I’m writing up a greasemonkey script that adds onclick behavior to the span. According to the site, you do something like
thisDiv.addEventListener(’click’,function(){
// function code here
},true);
This works OK, but what if my code needs scope? Say I wanted to search for some divs and have them tell which match they are [...]

Greasemonkey scripts

I’ve posted a few greasemonkey scripts on my site.

I Got Another Journal Publication

“Bit Commitment Blues” has been published in Journal of Craptology!