2/16/2007

Javascript made simple..!

If your application uses javascript, just give a try with the new framework written completely in javascript. Prototype is a JavaScript Framework that aims to ease development of dynamic web applications.

Here goes a sample snippet:

Instead of,
for (var index = 0; index < myArray.length; ++index) {
var item = myArray[index];
// Your code working on item here...
}

You can use iterators, such as each :
myArray.each(function(item) {
// Your code working on item here...
});

There are many overloaded methods and functions too!

Now what are you waiting for...?
Download Prototype from www.prototypejs.org

1 comment:

Arun said...

And prototype is widely used for its inbuilt AJAX framework. DOJO and scriptaculous are also powerful frameworks which are competitors of prototype. Good post Dinesh.

dzone.com