March 10th, 2006
- Category:
- JavaScript,
- Web Development
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)
·
Trackback URI
· Permalink
March 10th, 2006
- Category:
- JavaScript,
- Web Development,
- jQuery
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.
·
Trackback URI
· Permalink