blog.craiga.id.au — posts about jquery

jQuery.getStylesheet

Friday,
16th October 2009

Just a quick brain dump which may be useful to someone searching for the same thing I was. Enjoy.

function getStylesheet(url, callback) {
   jQuery.get(url, function(data, status) {
        if(status == "success") {
            jQuery("head").append(
                    "<style type=\"text/css\">" +
                    data + "</style>");
        }
        callback(data, status);
    });
};

Wednesday,
29th October 2008

jQuery Pumpkin

jQuery Pumpkin

Why I Hate jQuery

Wednesday,
30th January 2008

From the front page of the jQuery web site:

You start with 10 lines of jQuery that would have been 20 lines of tedious DOM Javascript. By the time you are done it’s down to two or three lines and it couldn’t get any shorter unless it read your mind.

When did a single line of complicated code become a better thing than a readable ten line function?

About Craig Anderson

By day, he works for ABC TV as a web dev­el­oper. By night, he plays bass gui­tar in Look Who's Tox­ic. He also runs a little Unix Time­stamp con­ver­sion site. There are plen­ty of other things he should be doing, but most of the time he's dreaming of what he'll do when he grows up while watching bad Star Trek spin-offs.