W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Re: <table> terse mode for data entry

From: Preston L. Bannister <preston@bannister.us>
Date: Sun, 8 Apr 2007 11:16:00 -0700
Message-ID: <7e91ba7e0704081116w69aa7445m91d3739df016a59c@mail.gmail.com>
To: "Elliott Sprehn" <esprehn@gmail.com>
Cc: "Dailey, David P." <david.dailey@sru.edu>, public-html@w3.org
Also you can get the same net effect using Javascript.

<table id="sometable">
</table>

<script>
populateTable("sometable",[
   [1,2,3,4,5],
   [2,3,4,5,6],
   [4,5,6,7,8]
]);
</script>

Where the implementation of "populateTable()" is straightforward (exercise
left to the reader ... always wanted to say that).  Given a skeletal
implementation you can enhance the generated table in any way that makes
sense for your application.  The script is only fractionally longer than the
purposed HTML, infinitely more flexible, and works in current browsers.


On 4/8/07, Elliott Sprehn <esprehn@gmail.com> wrote:
>
> This would not degrade gracefully in older browsers, and would require
> changing the parsing rules for HTML.
>
> I don't think this is in the spirit of the Design Principals.
>
> - Elliott
>
> On Apr 8, 2007, at 8:26 AM, Dailey, David P. wrote:
>
>
> A student of mine recommends the following. It makes sense to me. Maybe it
> will to someone else. Since most tables have both rows and columns, the tree
> analogy in HTML is a bit inaccurate (as a mathematical model) to begin with.
> This would save a lot of keystrokes for authors both clientside and
> serverside, it seems.
>
> David
> -----------------
> Table delimiters.
> It seems to me to be fairly simple to implement and would have many
> practical uses.
> For example:
> <table rowdelimiter='|' coldelimiter=','>
>     1,2,3,4,5|2,3,4,5,6|4,5,6,7,8|
> </table
> or
> <table type='csv'>
>     1,2,3,4,5
>     2,3,4,5,6
>     4,5,6,7,8
> </table
>
> would render a table much easier than specifing each cell and row.
> This would make importing data from other applications much easier as
> no to little formatting would have to occur. possibly something like this
> could be used.
> <table type='csv' src='data.csv' />
> --
> Chris@tuesdaybegins.com
>
>
>
>
Received on Sunday, 8 April 2007 18:16:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:52 GMT