- From: Dmitry Turin <html60@narod.ru>
- Date: Thu, 26 Apr 2007 10:19:27 +0300
- To: public-html@w3.org
Good day, Jonas. >> Look at relational data through browser as at multi-dimensional data >> is more often, then much html-tags, which already exist. JS> Why can't you reformat the data on the server so that it fits into a JS> normal table? Jonas, now it's possible to make all! I don't argue about that. But current ways is very complicated! And they don't avialable for un-experienced users. JS>You just have to format the data row-by-row. Can low-skill users write program (for example, by perl or php), which convert 3 rational table (from DBMS) into 1 browser table ? No. In better case, users can write 3 simple request to DBMS and merge result into output, like select '<table><thead>' union select '<th id=' + field_id + '>' + field_name + '</th>' from RowNames union select '</thead><tside>' union select '<th id=' + field_id + '>' + field_name + '</th>' from ColNames union select '</tside><tbody>' union select '<td row=' + field_i + ' col=' + field_j + '>' + field_data + '</td>' from Data union select '</tbody></table>' That is top of their possibilities. JS> Are you asking for the ability to format column-by-column instead? JS> ... We actually support this in XUL. No. Attirutes "row" and "col" contain COORDINATES of cells in example below. Cells go without any order: they are not sorted (ordered) by row [like if they inside tag TR], they are not sorted (ordered) by column [as it's possible in XUL]. JS> Or do you need to provide the data in completely random order? Yes. JS> If so, why? Neither "id" of rows/columns, nor name of rows/columns have any order in general case, but cells are placed in documents with correspondence to rows/columns. It's impossible (without additional job in database) to order cells in any dimension. >> I wrote Thomas Broyer recently, Excuse me, i don't send to WG yesterday, only to Thomas. I have already sent to WG now. JS> You can use <iframe>s as a way to load data I don't see how to place cells with correspondence to their attributes "row" and "col". JS> we can't have simple solutions for every edge-case I agree to not give tags for exclusive cases. I agree to discuss about division of cases into usual and exclusive cases. But I not agree to not give tags to usual cases. Dmitry Turin http://html6.by.ru http://sql4.by.ru http://computer2.by.ru
Received on Thursday, 26 April 2007 07:19:51 UTC