16 Jul 2008 jbaker   » (Apprentice)

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

Syndicated 2008-06-26 12:59:41 from Baker Designz

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!