Re: <table> terse mode for data entry

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 UTC