HTML
  Home arrow HTML arrow Page 3 - Tabular Database Forms with HTML
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

Tabular Database Forms with HTML
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-08-27

    Table of Contents:
  • Tabular Database Forms with HTML
  • The Layout
  • The Layout continued
  • The addRow() Function

  • 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


    Tabular Database Forms with HTML - The Layout continued


    (Page 3 of 4 )

    <tr id="TR0" onclick="selectRow('TR0')"><td id="TD00"><input type="text" readonly id="EI00" value="10"></td><td id="TD01"><input type="text" readonly id="EI01" value="Smith"></td><td id="TD02"><input type="text" readonly id="EI02" value="20"></td><td id="TD03"><input type="text" readonly id="EI03" value="Mgr"></td><td id="TD04"><input type="text" readonly id="IE04" value="8"></td><td id="TD05"><input type="text" readonly id="EI05" value="18357.50"></td><td id="TD06">-1</td></tr>

    <tr id="TR1" onclick="selectRow('TR1')"><td id="TD10"><input type="text" readonly id="EI10" value="20"></td><td id="TD11"><input type="text" readonly id="EI11" value="Jones"></td><td id="TD12"><input type="text" readonly id="EI12" value="20"></td><td id="TD13"><input type="text" readonly id="EI13" value="Sales"></td><td id="TD14"><input type="text" readonly id="EI14" value="9"></td><td id="TD15"><input type="text" readonly id="EI15" value="18171.25"></td><td id="TD16">-1</td></tr>

    <tr id="TR2" onclick="selectRow('TR2')"><td id="TD20"><input type="text" readonly id="EI20" value="30"></td><td id="TD21"><input type="text" readonly id="EI21" value="Gates"></td><td id="TD22"><input type="text" readonly id="EI22" value="38"></td><td id="TD23"><input type="text" readonly id="EI23" value="Mgr"></td><td id="TD24"><input type="text" readonly id="EI24" value="4"></td><td id="TD25"><input type="text" readonly id="EI25" value="17506.75"></td><td id="TD26">-1</td></tr>

    <tr id="TR3" onclick="selectRow('TR3')"><td id="TD30"><input type="text" readonly id="EI30" value="40"></td><td id="TD31"><input type="text" readonly id="EI31" value="Bond"></td><td id="TD32"><input type="text" readonly id="EI32" value="38"></td><td id="TD33"><input type="text" readonly id="EI33" value="Sales"></td><td id="TD34"><input type="text" readonly id="EI34" value="6"></td><td id="TD35"><input type="text" readonly id="EI35" value="18006.00"></td><td id="TD36">-1</td></tr>

    <tr id="TR4" onclick="selectRow('TR4')"><td id="TD40"><input type="text" readonly id="EI40" value="50"></td><td id="TD41"><input type="text" readonly id="EI41" value="Murphy"></td><td id="TD42"><input type="text" readonly id="EI42" value="15"></td><td id="TD43"><input type="text" readonly id="EI43" value="Mgr"></td><td id="TD44"><input type="text" readonly id="EI44" value="10"></td><td id="TD45"><input type="text" readonly id="EI45" value="20659.80"></td><td id="TD46">-1</td></tr>

    </tbody>

    </table>

    </div>

    </td>

    </tr>

    <tr>

    <td>

    <br />

    <form action="http://databaseSite.com/programFile.exe" method="post">

    <table>

    <tr>

    <td colspan="7" id="TDAE1">

    <button type="button" id="AE1" onclick="effectAddEdit()"> After Editing or Adding, You must Click here</button>

    </td>

    </tr>

    <tr>

    <td>

    <button type="button" id="A1" onclick="addRow()"> Add </button>&nbsp;&nbsp;&nbsp;&nbsp;

    </td>

    <td>

    <button type="button" id="E1" onclick="editRow()"> Edit </button>&nbsp;&nbsp;&nbsp;&nbsp;

    </td>

    <td>

    <button type="button" id="D1" onclick="deleteRow()"> Delete </button>&nbsp;&nbsp;&nbsp;&nbsp;

    </td>

    <td>

    <button type="button" id="C1" onclick="clearAdd()"> Clear </button>&nbsp;&nbsp;&nbsp;&nbsp;

    </td>

    <td>

    <button type="button" id="So1" onclick="sort()"> Sort </button>&nbsp;&nbsp;&nbsp;&nbsp;

    </td>

    <td>

    <button type="button" id="S1" onclick="finalize('S1')"> Save </button>&nbsp;&nbsp;&nbsp;&nbsp;

    <button type="submit" id="Sa1" style="display:none"> Save </button>

    </td>

    <td>

    <button type="button" id="Do1" onclick="finalize('Do1')"> Done </button>

    <button type="submit" id="Don1" style="display:none"> Done </button>

    </td>

    </tr>


    </table>

     

    <!-- Transmitted Table -->

    <table id="TransmittedTable">

    </table>

     

    </form>

    </td>

    </tr>

    </table>

    </td>

    </tr>

    </table>


    </body>

    The start() Function

    This function is called when the page is loaded. It replaces the setFirstRow() function for our Single-Row Form. The function simply establishes the total number of rows of the recordset.

    In the setFirstRow() function for our Single-Row Form we had to display the data of the first row on the form; we had to disable the Show First and Show Previous buttons and do other things. Here, all those features are not necessary. This is the function:

    //the function called onload

    function start()

    {

    //determine the total number of rows

    var rowCollection = document.getElementById('Recordset').rows;

    numberOfRows = rowCollection.length;

    }


    More HTML Articles
    More By Chrysanthus Forcha


       · The story lives on.Chrys
       · Hi,great article about making Tabular forms. Also is previous article about...
     

    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 2 Hosted by Hostway
    Stay green...Green IT