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);
});
};
Published: Friday, 16th October 2009 at 2:39 PM
By day, he works for 99designs as a web developer and writer. By night, he plays bass guitar in Look Who's Toxic. There are plenty 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.