JavaScript
  Home arrow JavaScript arrow Building the Front End of a List Generator...
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  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
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 the Front End of a List Generator with JavaScript
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2006-12-05

    Table of Contents:
  • Building the Front End of a List Generator with JavaScript
  • Developing the list generator’s front-end
  • Using JavaScript and the DOM
  • Integrating all the client-side code of the list generator

  • 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 the Front End of a List Generator with JavaScript


    (Page 1 of 4 )

    In this first part of a two-part series, you will go through the process of creating the front end of a simple JavaScript application that generates dynamically list-wrapped links. The code can be copied and pasted to your favorite text editor.
    A downloadable zip file is available for this article.

    Fortunately for many conscientious web designers worldwide, building websites that are fully compliant with the set of standard rules dictated by the World Wide Web Consortium (W3C) has become a high priority. Many times, this inspires the writing of clear, tight, and easy-to-read (X)HTML markup, along with the corresponding CSS files attached to it, and the eventual JavaScript routines that might be required by the website in question.

    Logically, following this approach when creating a particular website has huge benefits from all points of view. It allows you to develop a web-based project by using the popular layered method. This consists of breaking apart the structure of the web site into distinct layers which are naturally well differentiated from each other.

    Of course, here I’m talking about the corresponding structural, presentation and behavioral layers of a specific website. These should be quite familiar to you, particularly if you’re a seasoned web developer who also has experienced how powerful and convenient the layered model can be for creating highly-maintainable web applications.

    However, although the three development layers that I mentioned before actually deserve an in-depth look, in this two-part series, I’m going to focus all my attention (and yours hopefully) on one in particular: the structural (X)HTML markup of a given website. More specifically, I will focus on the creation of the respective main links, which can be easily wrapped into unordered lists, in this way improving their overall usability, as well as their accessibility.

    If you’re a strong advocate of housing the links of your own website in (X)HTML lists, then the JavaScript application that I plan to develop here will hopefully be quite appealing to you. Essentially, in this comprehensive pair of articles, I’ll show you how to create an extensible list generator application with JavaScript which will output the corresponding markup to a conventional text area, thus the code can be copied to your favorite text editor with minor hassles.

    The project looks really interesting and useful as well, trust me. Therefore, after having explained the goal of this two-part series, let’s move on and learn together how to create list-wrapped links with JavaScript. Let’s go!

    More JavaScript Articles
    More By Alejandro Gervasio


       · Want to have at hand a simple JavaScript application that creates list-wrapped links...
     

    JAVASCRIPT ARTICLES

    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget
    - Ajax Hack for Entering Information Without R...
    - EXT JS 2.1 Overview
    - Using the Style Object for Zebra Tables with...
    - Binary Searching
    - An Improved Approach to Building Zebra Tables






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT