Prototype JS
So after doing a little bit of exploration in javascript frameworks yesterday, I found out how easy prototype makes it.
Ajax is easy as could be, and you address element id’s with $(id) as compaired to document.getElementById(’id’).
I wish I was smart enough to make my own framework, I’ve got some learning to do, but I think I got the idea.
I haven’t figured out how to extend the DOM so that you can use $( instead of document.getElementById, but I’m working on it!
Any Ideas?
Update: June 26,2008
Kangax pointed out to me this:
function $(id) {
return document.getElementById(id);
}
I feel really stupid now for not seeing this earlier.
-Justin B
