This is great stuff... my boss thinks I'm a genius! Sadly, I had to tell him a guy named
Dieter in Germany actually wrote this...
Anyway, I think I found a couple of problems with the handling of numeric columns:
1) When the number stored in the "theTab.js" is "0", nothing appears in the table. In our
case, we want the actual 0 to appear, not a blank. Is this fixable?
2) This one is trickier. When a blank is stored in the numeric column, and when this is the last column in the
table, the page doesn't display.
Here's an example from our "theTab.js" file:
var theCols = new Array();
theCols[0] = new Array("Code", 4, 6);
theCols[1] = new Array("Description", 4, 200);
theCols[2] = new Array("Precision", 1, 11);
var theRows = new Array(), ir=0;
theRows[ir++] = new Array ("WST", "Samoan Tala",2);
theRows[ir++] = new Array ("XAF", "CFA Franc BEAC",0);
theRows[ir++] = new Array ("XAG", "Silver",); //<-- note the blank number here
I tried putting " " in place of the blank, like ths, ("XAG", "Silver",""); This got the page
to display, but the sorting and filtering didn't behave properly.
If you have any time, I would appreciate your help.