PhpRiot
Follow phpriot on Twitter
Sponsored Link
Download Article
Download this article or the entire “Eight Weeks of Prototype” series with all listings and files.




More information
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

Eight Weeks of Prototype: Week 1, Beginning with Prototype

Summary

In this, the first of eight articles about Prototype, we have covered many of the important fundamentals that you will need to know for more advanced Prototype development.

We began the article by downloading and installing Prototype and learning where to find the API documentation.

Next we learned how to select elements from the Document Object Model (DOM) using the $(), $$(), select(), up(), down(), next() and previous() methods.

After this we learned how to create new elements, and we looked at different ways of inserting those elements into the DOM, using the insert() method.

Finally, we learned how to remove elements from the DOM by using the remove() method.

In the next article of "Eight Weeks of Prototype", I will teach you about the functionality Prototype adds to DOM elements, and how to manipulate elements in different ways using these added functions.

Other Options

In This Article