27.10.2015 Views

AJAX and PHP

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 10<br />

The Prototype features are:<br />

• Complete object-orientation<br />

• Utility functions<br />

• Form helper functions<br />

• <strong>AJAX</strong> support<br />

• Periodical executer<br />

Another pioneer of JavaScript development is Thomas Fuchs, the man who built the great JavaScript<br />

library—script.aculo.us—a library that provides spectacular visual effects. We'll be using some of<br />

these features in our drag-<strong>and</strong>-drop application (more specifically, the dragging <strong>and</strong> dropping<br />

features). Script.aculo.us is built on top of Prototype, thus inheriting all Prototypes' features.<br />

Features of Script.aculo.us are:<br />

• Complete object-orientation<br />

• Visual effects (fade in, fade out, grow, shrink, blind down, blind up, shake, etc.)<br />

• Drag-<strong>and</strong>-drop support<br />

• Autocompletion<br />

• In-place editing<br />

• Slider controls<br />

The application we're about to build will be a small task management application <strong>and</strong> will allow us<br />

to create new tasks, reorder existing tasks, <strong>and</strong> delete tasks. Summarizing the features:<br />

• Database back end<br />

• Drag-<strong>and</strong>-drop items<br />

• Add new tasks with <strong>AJAX</strong><br />

• Instant database update when drag <strong>and</strong> dropping<br />

• Delete a task by dragging <strong>and</strong> dropping it into a special designated area<br />

239<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!