Tag Archives: javascript

jQuery Logging

I’ve been having a lovely day at work, fiddling with jQuery. I started to come up with some really gnarly selector chains though, and I wondered what nodes they were actually addressing. So, I wrote a tiny jQuery extension that … Continue reading

Posted in Uncategorized | Tagged , | 25 Comments

Practical Fascism

On my recent project at work, I’ve instigated a number of features: An XSLT stylesheet that strips out all inline JavaScript and inline CSS before it ever hits the browser. Go-go Unobtrusive JavaScript! Lots of jUnit tests: Every piece of … Continue reading

Posted in Uncategorized | Tagged , , , | Comments Off

jslint4java 1.1

I’ve put out a new version of jslint4java. The changes aren’t huge, but there are a couple of note: Fix Issue 1: a NullPointerException when jslint gives up. This is doubly annoying because it’s both documented and it caught me … Continue reading

Posted in Uncategorized | Tagged , , | Comments Off

jslint4java

A while ago, I wrote a small wrapper around jslint in Perl: JavaScript-JSLint. However, it’s a real pain to use. There’s a dependency on JavaScript, which in turn needs a compiled version of spidermonkey. On a recent Java project at … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments

JavaScript URI Objects

I started looking at a dashcode project the other day. Within a few minutes, I realised that I needed something like URI.pm, in order to resolve URIs into an absolute form. I had a quick look around and there didn’t … Continue reading

Posted in Uncategorized | Tagged | 8 Comments

Pro JavaScript Techniques

I’ve just finished Pro JavaScript Techniques by John Resig (author of jQuery). It lives up to the name. If you’re a beginner with JavaScript, then look elsewhere. But if you’ve done a little bit before, then this is the book … Continue reading

Posted in Uncategorized | Tagged , | 3 Comments

jQuery in Brighton

I went to see Jay Caines-Gooby talk about jQuery last night. It was part of the Sussex Geek Dinner thing. jQuery looks really, really cool. I like prototype, but jQuery looks like it tries to do less. I was particularly … Continue reading

Posted in Uncategorized | Tagged , | 3 Comments

dTrace & JavaScript

dTrace is one of those really, really cool technologies I wish I’d had back when I was a wookie^Wsysadmin. It lets you monitor and profile your system in ways which just weren’t possible before. It’s Solaris only at present, but … Continue reading

Posted in Uncategorized | Tagged , | Comments Off

Decorated JavaScript

I’ve just read The Decorator Pattern for JavaScript. It’s a beautiful example of precisely how flexible a language like JavaScript is. The technique described allows you to run functions before and/or after any function on any object. The code is … Continue reading

Posted in Uncategorized | Tagged | 3 Comments

JavaScript on OSX

So, after my little rant a few days ago, I’ve now gotten JavaScript::JSLint up and running. But that involves downloading a lot of Perl modules, and installing SpiderMonkey, which is a none too pleasant task. However, the Mac should already … Continue reading

Posted in Uncategorized | Tagged , , | Comments Off