Does SQLTABLE produce the output you need, except you want different column headers and maybe slightly different coloration of the THEAD row? The Javascript below does exactly that. The combination of SQLTABLE and the code below has sped up my table builds so I thought I would share.
Usage: Add the modthead() to your existing .ready statement in your View. arguments: list - an array of header names. Number of elements should match the number of columns in the table. A mismatch throws an alert but continues processing. fg - foreground color text styling. bg - background color text styling. limitations: No pagination provided. No multitable support in the view. It operates on the first table found. -------------------------------------------------------------------- <script type="text/javascript"> $(document).ready(function () { modthead(['L Name','F Name','Phone'],'#55ccff','#ccff55'); }); function modthead(list,fg,bg){ var thcount; var i; thcount = $("#columnA_columnless").find('th').size(); if (thcount != list.length) {alert("Header length mismatch"); }; for (i=0; i < thcount; i++) { $("#columnA_columnless").find('th').eq(i).css("color", fg).css ("background-color", bg).attr("textContent", list[i]); }; }; </script> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---