When you select elements from the Document Object Model (DOM) using the functions Prototype provides, each returned element is extended with extra functionality. In this, the second article in "Eight Weeks of Prototype," I will show you exactly how Prototype extends these elements.
You might have been in a situation before where you had a list of items in your database that needed to be output in a specific order. These items could be anything: perhaps a listing of your favourite movies or your favourite books. For whatever reason, you want them ordered in a custom way that can't be determined automatically (such as alphabetical).
This article covers the implementation of a system that lets you easily define the order of such a list.
To aid us in this process we will be using AjaxAC, an open-source framework written in PHP used to develop AJAX style applications.
We will be implementing a clone of this application, from start to finish. This begins with setting up our frontend HTML file and CSS styles, creating our AjaxAC GoogleSuggestCloneJax application, and then linking it all together.
This article contains a few simple pointers to make sure all your HTML code is XHTML compliant. This will be an evolving document as there will periodically be new ideas and methods of doing things.
It's amazing that despite how simple and fundamental all of these things are, very few people coding HTML get them right.