HTML
  Home arrow HTML arrow Page 2 - Edit and Other Database Form Functions wit...
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

Edit and Other Database Form Functions with HTML
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-08-06

    Table of Contents:
  • Edit and Other Database Form Functions with HTML
  • The deleteRow() Function
  • The includeInTransmittedTable(Decision) Function
  • The finalize(ID) 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


    Edit and Other Database Form Functions with HTML - The deleteRow() Function


    (Page 2 of 4 )

    This function can be as complicated as you want, but I will make it very simple. The data you are currently seeing on the form is the one whose corresponding row in the recordset will be deleted.

    You can click the Delete button whenever it is enabled. When you click it, the deleteRow() function is called. It first calls the “includeInTransmittedTable('DELETED')” function. The includeInTransmittedTable() function makes a copy of the row to be deleted in the Transmitted Table. The value “DELETED” is passed. As I said, this value will be the last piece of data in the copied row of the Transmitted Table. At the server, the program-file that receives the processed rows will use this data to know that this was a deleted row.

    The function then goes on to write the word “DELETED” in all the fields of the corresponding row in the recordset, except the last field where the value remains –1. The function also writes the word “DELETED” in all the Input controls of the form. The data on the form corresponds to a particular row in the recordset. The position of this row is always indicated at the top-right area of the form. The is the code for the deleteRow() function:


    function deleteRow()

    {

    //add the row to be deleted with its indication to the Transmitted Table.

    includeInTransmittedTable('DELETED');

     

    //replace the first six fields of the recordset row and all control fields with the word, DELETED

    for (j=0;j<6;j++)

    {

    //form the input text control ID

    ID = "EI" + j;

    //form the input text control ID

    CID = "EI" + j;

     

    document.getElementById('Recordset').rows[index].cells[j].innerHTML = "DELETED";

    document.getElementById(CID).value = "DELETED";

    }

    }

    More HTML Articles
    More By Chrysanthus Forcha


       · As you are reading, if the going ever gets tough, the tough must get going. This new...
     

    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
    Stay green...Green IT