Prototype Primer

via Ajaxian; new to Ajax? want to use Prototype to handle all the work? Read on!

If you’re just starting off in the vast world of Ajax, you might be wondering why so many people are using something as difficult as a manual XMLHttpRequest connection. Of course, Ajax wouldn’t be as wide-spread as it is if everyone had to write all of that code out by hand each time. Enter one of the most popular Javascript libraries out there, complete with Ajax support - Prototype. Never used it? Well, here’s a handy article to help get you up to speed.

From O’Reilly’s XML.com site:

This article describes Prototype, an open source JavaScript library to create an object for an AJAX application. I explain how to use Prototype by describing an environmentally oriented web application that displays an annual atmospheric carbon dioxide (CO2) level. First, I will discuss Prototype’s benefits and describe how to set up Prototype in your application. Second, I will delve into the nitty-gritty of how this application puts the library to good practical use.

When learning a new langauage or coding style, it’s always easier to have a goal to work towards. In the article they start from the very beginning (including a brief setup portion) and introduce you to Prototype and its functionality. You’ll need to have a bit of a Javascript background on this one, but it’s not too hard for most to pick up on.

Leave a Reply

You must be logged in to post a comment.