HTML
  Home arrow HTML arrow Page 2 - Using a 3D HTML Table as a Recordset
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

Using a 3D HTML Table as a Recordset
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2008-11-18

    Table of Contents:
  • Using a 3D HTML Table as a Recordset
  • The CSS Display Property
  • Experience with a 3D Recordset
  • Code Explanation

  • 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


    Using a 3D HTML Table as a Recordset - The CSS Display Property


    (Page 2 of 4 )

    The 3D recordset is a table. If you want its content to be seen, you should give the value of "block" to its CSS display property. If you do not want its content to be seen, you should give the value of "none" to its CSS display property.

    Minimum Requirements of a Read/Write 2D Recordset

    A 2D recordset should have at least the following functions:

    • A function to give the total number of rows of the recordset.

    • A function to locate a row or cell in order to access data.

    • A function to edit data in a row.

    • A function to delete a row.

    • A function to add a row.


    Minimum Requirements of a 3D Read/Write Recordset

    Thinking logically from the above requirements, as a minimum, a 3D recordset should have the following functions:

    • A function to give the total number of horizontal and/or vertical planes of the recordset.

    • A function to locate a plane, row or a cell in order to access data.

    • A function to edit data in a cell, row or plane.

    • A function to delete a plane.

    • A function to add a plane.

     I will address these five points in this article as they concern a 3D HTML table.

    Regular 3D Recordset

    For a regular (rectangular) 2D recordset, if you delete a row or a column, the recordset remains regular. For a regular 3D recordset (cuboid), if you delete a row or a column the recordset becomes irregular (no longer a cuboid).

    Some DOM Features

    We can carry out all the above functions and more, thanks to some DOM features. Here they are.

    Table Object Collections

    cells[]: Returns an array containing each cell in a table.

    rows[]: Returns an array containing each row in a table.


    Table Object Methods

    insertRow(): Inserts a new row in a table.

    deleteRow(): Deletes a row from a table.


    The features of the HTML DOM TableRow Object we shall use are as follows:


    TableRow Object Collections

    cells[]: Returns an array containing each cell in the table row.


    TableRow Object Methods

    insertCell(): Inserts a cell into a table row.

    TableCell Object Properties

    InnerHTML: Sets or returns the HTML between the start and end tags of a table cell.

    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 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek