Developing the Behavioral Layer for a Content Management System with Prototype
(Page 1 of 4 )
The Prototype JavaScript framework has become extremely popular with many web developers. This makes possible the development of many web applications that use the remarkable AJAX capabilities that come packaged with this library. In this article in particular, the functionality of Prototype is utilized to build a highly expandable content management system, so if you're interested in learning how this application will be created, start reading now!
Introduction
Welcome to the second installment of the series that began with "Building a Content Management System with Prototype." As the article's title claims, this series teaches you how to create a useful CMS application in a step-by-step format, which allows you to easily insert, edit and delete contents from a simple MySQL database.
As you'll probably recall, in the preceding tutorial of the series I explained in a friendly fashion how to create a simple graphical interface for providing users with the capacity to add new contents to the content management system, aside from being able to edit the contents, or eventually delete them.
In this case, I demonstrated the use of this application by using some data related to publishable articles, including information about authors, article titles, and so forth, but since the structure of the system is actually very flexible, it can be easily modified to work with contents of a different nature.
All in all, at this point I believe that the simple front-end that was built in the previous article of the series shouldn't be hard for you to grasp at all, therefore it's time to take the next step involved in the development of this Prototype-based content management system.
Essentially, in this second tutorial I'm going to take advantage of Prototype's AJAX capabilities to define the group of JavaScript functions that will be responsible for adding new articles to the system, as well as updating and deleting them. Of course, all of these useful tasks will be performed with the assistance of the popular "AJAX.Updater" object that comes bundled with this library, whose functionality is indeed remarkable.
All right, having introduced clearly the topics that will be treated over the course of this article, let's move on together and see how to build the behavioral layer that corresponds to this Prototype-driven CMS. Let's get started now!
Next: The full source code of the previously developed front-end >>
More JavaScript Articles
More By Alejandro Gervasio