Developing the Behavioral Layer for a Content Management System with Prototype
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!
Developing the Behavioral Layer for a Content Management System with Prototype - The full source code of the previously developed front-end (Page 2 of 4 )
Before I proceed to create the wealth of JavaScript functions that integrates the behavioral layer of this Prototype-driven content management system, I'd like to list the complete client-side code that corresponds to this application, including the respective CSS styles and the structural markup.
My doing so will possibly help you understand more easily how the JavaScript code that I plan to incorporate into the system in question will be linked to the corresponding presentation module that was developed in the previous article of the series.
Having said that, here is the entire client-side code of this CMS application, as it was originally defined:
Once you have examined the previous code listing, I believe that you'll find the approach followed to create the front-end of this content management system is already familiar to you. The look and feel of the application has been achieved by coding a few basic CSS styles, along with some simple containing DIVs. Now, does the above client-side code ring any bells for you? I bet it does!
All right, having shown you the complete source code that corresponds to the presentation and structural layers of this CMS, I think that it's a good time to leap forward and start creating the group of JavaScript functions that will be responsible for adding new articles to the system, in addition to editing and deleting them.
As I expressed in the introduction of this article, all these crucial tasks will be performed via the robust Prototype's AJAX capabilities, which means that no page reloads will take place.
To learn how the useful methods that come packaged with the Prototype library will be used in the definition of the corresponding behavioral layer of this content management system, click on the link below and keep reading.