JavaScript
  Home arrow JavaScript arrow Page 3 - Building a Content Management System with ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Building a Content Management System with Prototype
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 2
    2007-04-16

    Table of Contents:
  • Building a Content Management System with Prototype
  • Creating the CSS styles
  • Adding the structural markup
  • The full client-side code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    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.

    More JavaScript Articles
    More By Alejandro Gervasio


       · Undeniably, the Prototype JavaScript framework can be useful to develop a great...
       · Ok, near as I can tell you've:- taken a basic weblog-style CMS idea- written a...
       · Thank you for your comments on my article. Also, I disagree with all of them, even...
     

    JAVASCRIPT ARTICLES

    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in
    - Active Client Pages at the Server
    - ACP Tab Web Page







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT