http://stilbuero.de Klaus Hartl – Stilbüro - Klaus Hartl


Jump to: Search, Additional Information.


Archive for March 10th, 2006

JavaScript introduction (and more)

Anyone somehow interested in JavaScript shouldmust read the fantastic tutorial given by Simon "addEvent" Willison at ETECH. I wish I’d been there. His notes may help to understand this or that better.

Oh, and don’t even think about skipping the basics, you experts!

(via Ajaxian)

Helpful jQuery/Prototype plugin

Michael Geary has written an helpful jQuery/Prototype plugin that makes creating new DOM nodes much more convenient than using document.create all the time.

If you want to create a new p node with a class attribute named "foo" you just have to write:

var myP = $.P({ Class: "foo" });

Nested nodes anyone?

var myP = $.P({ Class: "foo" }, $.A({ href: "http://www.example.com" }, "My Link"));

By the way, couldn’t agree more: Free beer and free speech. Amen.



Klaus Hartl – Stilbüro is powered by WordPress, jQuery, XHTML, CSS and me.