JavaScript
  Home arrow JavaScript arrow Introducing the Prototype JavaScript Libra...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Introducing the Prototype JavaScript Library
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2007-01-30

    Table of Contents:
  • Introducing the Prototype JavaScript Library
  • Handling specific elements of a web page: introducing the $ function
  • Working easily with arrays and hashes: using the $A and $H functions
  • Dealing easily with form fields: using the $F function

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Introducing the Prototype JavaScript Library


    (Page 1 of 4 )

    When using JavaScript for the behavioral layer of an application, it is often preferable to arm yourself with a third-party JavaScript library. Prototype is one such prebuilt JavaScript library. This article, the first in a three-part series, introduces you to the principal functions of this popular framework.

    When it comes to using JavaScript for developing the behavioral layer of a web application, you're presented with an interesting variety of options. Obviously each of one of then has its own set of pros and cons. Naturally, the first approach to take here consists simply of coding your own group of JavaScript functions, according to specific development requirements, or even using a pre-existing library, which has also been the result of your creativity and effort.

    However, to be frank, this approach can be a time-consuming process, not to mention the fact that code reusability is merely discarded in favor of developing custom JavaScript routines. Definitely, this scenario should be quite familiar to many web developers out there, including yourself, of course.

    On the other hand, as you may have guessed, the other logical approach to follow when building a web application is based upon picking up a third-party JavaScript library that comes packaged with enough features and goodies that allow you to tackle the most common issues that web developers have to face on a frequent basis.

    Particularly, in this terrain there are some third-party packages that have emerged in the last two years, aimed at making JavaScript programming as painless as possible. Nonetheless, among the pre-built JavaScript libraries that are available these days, there's one that has caught the attention of many developers. I'm speaking of Prototype, definitely a framework that has become extremely popular due to its excellent features for developing robust AJAX-based applications and working with online forms, easily manipulating web page elements and handling arrays iterators, and so forth.

    Therefore, keeping in mind that Prototype can be as useful to you as it is to me, over the course of this three-part series, I'll be showing you how to use its principal functions. I'll discuss the ones aimed at working with AJAX, using the DOM, handling events, and much more.

    Hopefully, by the end of this series, you should be armed with a respectable background of how to use the neat features that come included with Prototype. This should add a boost to the development of your own web applications.

    Ready to make your way in the universe of Prototype? Okay, let's do it together!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This first article of the series is focused on exploring the main features of this...
       · just a small correction - prototypes official site is...
       · Thank you commenting on this article and for the update on Prototype's official...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT