Handling Forms, Events and More with the Prototype JavaScript Library
(Page 1 of 5 )
Do you want to learn how to use the popular Prototype library to facilitate the development of your own JavaScript applications? Then look no further, because this set of articles is what you’re looking for! Welcome to the final installment of the series "Introducing the Prototype JavaScript library." Made up of three parts, this series teaches you how to get the most out of this powerful JavaScript package, by showing you copious hands-on examples.
Going back to the previous article, you'll remember that I demonstrated how to take advantage of the robust AJAX capacities that come with this library by looking at the helpful "AJAX.Request" and "AJAX.Updater" classes. These classes help you to rapidly develop AJAX-based applications without having to deal with cross-browser issues, or write custom code to handle the different states of a given HTTP request.
Also, I showed you how to use a few additional functions, including some popular ones, like "Try.these()" and "each()." In particular, the latter one implements a different way of coding looping structures, very similar to the iterations used in Ruby. In short, you'll realize that Prototype has a wealth of powerful features that can noticeably boost your JavaScript programming and facilitate the development of AJAX-driven programs.
Nonetheless, this package has some extra functions and methods that deserve an in-depth look. In this last tutorial of the series, I'm going to explain the appropriate usage of some of them, including the implementation of iterators functions, event observers, and form handlers. Sounds really interesting, right?
Now that you know the topics that will be covered in this final article, let's move forward together and continue discovering many other useful capabilities that come integrated with Prototype. Let's go!
Next: Iterator functions and event observers >>
More JavaScript Articles
More By Alejandro Gervasio