HTML
  Home arrow HTML arrow Completing a Tree with Active Client Pages
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? 
HTML

Completing a Tree with Active Client Pages
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2009-08-20

    Table of Contents:
  • Completing a Tree with Active Client Pages
  • The Code
  • Description of the First Page's Code
  • The JavaScript

  • 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


    Completing a Tree with Active Client Pages


    (Page 1 of 4 )

    Welcome to the second part of a two-part series on building a tree with Active Client Pages. In this part, we will use the example of a museum's web site to take a close look at the code for a session. We'll see how the tree facilitates project development.

    Description of the Example

    This is a hypothetical example. You have the web site of a museum. The museum contains old furniture, old shoes and old bags. The web site describes and shows everything that is in the museum.

    As you can see, the existence of categories in the project becomes apparent. The master page gives you the general descriptions of the categories of items in the museum. These categories are the furniture, shoes and bags. 

    After the master page you can have three more pages: a page for the furniture that describes the items in more detail and links to the individual classes of furniture; another page that describes the shoes in the museum, and links to individual classes of shoes; the third page that describes the bags in the museum, and links to individual classes of bags. When you click a link on one of these first (second from the user’s perspective) level pages you see the final details of an item class in the museum.

    The Tree

    The above description can be better put into a tree. This is the tree:


    Fig2.1


    I use only windows for the pages. I did not use documents for the pages. From the tree, it is easier to do your ACP design. In some other example you would have more than one level of categories, and the tree would be longer, growing downward.

    From the tree I can better continue with the description of the example. Node N0 is the master page that gives you a general description of the museum. Node N1_0 is the furniture page that has the links to furniture class pages. Node N2_0_0 is a page that talks about the chairs in the museum; this is one class (details). Node N2_1_0 is a page that talks about tables in the museum. Node N2_2_0 is a page that talks about the cupboards in the museum.

    The other nodes can be similarly described. To save time and space I will not describe them here. At this point you should have the complete code and try (experiment with) it following the instructions given below, before you continue. There are thirteen files for the project. All of these files are in one zip file which can be obtained from here:

    treeACP.ZIP

    How to try the complete code

    Use a personal web server where the root directory is “localhost.” Create a cgi-bin directory in the root directory. Unzip the downloaded file. Place the  treeACP.htm file in the root directory. Place the rest of the files in the cgi-bin directory. Open you browser and typehttp://localhost/treeACP.htm; you should have the master page. Click all the buttons in all the different pages (as they open) to appreciate the design.

    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek