Home arrow JavaScript arrow Page 3 - Building a Content Management System with Prototype
JAVASCRIPT

Building a Content Management System with Prototype


The Prototype library has grown in popularity among JavaScript programmers because of the powerful features that come bundled with it. In this set of three articles, you'll learn how to use this versatile framework for building a content management system. This first part will deal with the creation of the front end of the CMS.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
April 16, 2007
TABLE OF CONTENTS:
  1. · Building a Content Management System with Prototype
  2. · Creating the CSS styles
  3. · Adding the structural markup
  4. · The full client-side code

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Building a Content Management System with Prototype - Adding the structural markup
(Page 3 of 4 )

In accordance with the concepts that were deployed in the previous section, we need to create the (X)HTML markup that belongs to this application. Therefore I have included the following code listing, which defines in a clear fashion the structural markup that comprises this Prototype-based content management system.

Here is how the (X)HTML markup of this application looks:

<h1 id="header">PROTOTYPE-BASED CMS</h1>
<div id="contents"></div>
<div id="formcontainer">
 
<form id="articleform">
   
<p>Article Title <input type="text" id="title"
class="inputbox" title="Enter article's title" /></p>
   
<p>Article Author <input type="text" id="author"
class="inputbox" title="Enter article's author" /></p>
   
<p>Enter contents of article below</p><p><textarea
id="content" title="Enter the contents of the
article"></textarea></p>
   
<p><input type="submit" value="Upload Article"
class="submitbox" title="Upload article" /></p>
   
<input type="hidden" id="id" />
   
<input type="hidden" id="command" value="upload" />
 
</form>
</div>

As shown previously, the structural markup of this CMS is in fact very easy to grasp and code. Essentially, it's composed of two primary DIVs. The first container will be responsible for housing the full list of articles published in the system, and the second one will display the corresponding insertion web form, which will be used to add new articles. Pretty simple, right?

Well, at this stage you hopefully learned how both the CSS styles and the structural markup of this CMS application were properly created. In the upcoming section I'm going to integrate the two respective modules, completing the client-side code corresponding to the content management system.

Sounds fair to you? Okay, to see how this educational journey continues, click on the link below and keep reading.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials