Browse Prior Art Database

A method of generating HTML Tables

IP.com Disclosure Number: IPCOM000015022D
Original Publication Date: 2002-Apr-01
Included in the Prior Art Database: 2003-Jun-20
Document File: 1 page(s) / 37K

Publishing Venue

IBM

Abstract

This invention is a tool which generates HTML tables, which the application programmer can use to add cells to tables adhoc, and the tool will generate a syntactically correct tables. Background An HTML table must be created left to right, top to bottom. A programmer cannot add a row or column which is "before" the current row or column. This poses a problem when the information to be displayed cannot easily be retrieved in the right order. Secondly, some tables are generated as required. If a table will not contain any information, then it should not be created. Yet if the table requires a header row, the programmer must perform a look-ahead" on the information to determine if a header row must be created. Finally, when creating a table with cells that span a row or column, special care must be taken to ensure that the spanning does not violate HTML table syntax. Solution

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 100% of the total text.

Page 1 of 1

A method of generating HTML Tables

    This invention is a tool which generates HTML tables, which the application programmer can use to add cells to tables adhoc, and the tool will generate a syntactically correct tables.

Background

An HTML table must be created left to right, top to bottom. A programmer cannot add a row or column which is "before" the current row or column. This poses a problem when the information to be displayed cannot easily be retrieved in the right order. Secondly, some tables are generated as required. If a table will not contain any information, then it should not be created. Yet if the table requires a header row, the programmer must perform a look-ahead" on the information to determine if a header row must be created. Finally, when creating a table with cells that span a row or column, special care must be taken to ensure that the spanning does not violate HTML table syntax.

Solution

The solution allows a programmer to add cells to a table in any order. When all the required cells in the table have been added, the tool will generate the correct HTML syntax for it. Since the cells can be added in any order, creating a table can be accomplished in less code, and in a more logical manner. The programmer adds cells to the table as he wishes. If any cells were added, then the programmer adds the header row, and the tool generates the table.

If a cell spans a row or column, the tool will correctly add the required syntax.

1