Activate your free membership today | Log-in

Wednesday, February 22nd, 2006

Painless JavaScript Using Prototype

Category: Programming, Prototype

In this new post on the “Javascript & DHTML Tutorials” blog from SitePoint, Dan Webb demonstrated how to use the Prototype library to make “painless Javascript” for your site.

Personally, I think the jury’s out on the whole ‘fun’ JavaScript thing, but nevertheless Prototype is a really well executed JavaScript library which, although the situation has been improving of late, has had notoriously sparse documentation. This article provides a whirlwind tour of the whole library. It aims to give you enough examples and resources to get started using Prototype in your DOM scripting projects.

The article reads like an introduction to Prototype, starting with the basics of installation and mentions of the helper functions. Following that, they move into more complicated things – extending the class, binding functions, and handling iterations “the Ruby way” (enumerable and hash).

They finish off things with a look at three more developed topics – how to use the library to help manage HTML forms, simple examples of how to alter the DOM of a page, and, of course, using Prototype for Ajax. The form functions allow you to work quickly and easly with HTML forms. This includes things like putting the focus on a field, serializing the results of the form. They show how the DOM functionality can insert/remove content on the page, and provide a simple example of the Ajax methods to connect to a remote PHP script.

Posted by Chris Cornutt at 8:05 am
3 Comments

++++-
4.2 rating from 30 votes

3 Comments »

Comments feed TrackBack URI

[...] Painless JavaScript Using Prototype: [...]

Pingback by Sam’s random musings » Painless JavaScript Using Prototype — February 22, 2006

[...] Blogged on Ajaxian.com Painless JavaScript Using Prototype [JavaScript & DHTML Tutorials] [...]

Pingback by abhin4v’s blog » Blog Archive » Painless JavaScript Using Prototype [JavaScript & DHTML Tutorials] — February 24, 2006

As a professional IT study materials provider, Pass4sure is specially designed for IT candidates who want to pass any IT exams, supported by a powerful team for product research and development, as well as website development and operation. Its vendors like Cisco, Microsoft, IBM, Sun, compTIA, HP, etc, are all positioned as leaders in the IT field.The Most Popular exams List :220-602646-363 NS0-163 646-671 646-230 HP0-J22 642-164 TK0-201 1Y0-259 220-602 1Z0-053 640-802642-654 220-701 646-204 642-691 000-331 1Y0-A05 642-359 PW0-104 642-746 642-524 640-802 Click Pass4sure to get more information!

Comment by pass4sure — February 28, 2010

Leave a comment

You must be logged in to post a comment.