Board Logo

Altering TABLE_CONTENT
ptiseo - 3/1/2006 at 10:04 PM

Please note that I am working on an older site that uses v1.0 of the table control. Cannot upgrade it, but this problem should not depend on a new version, unless the new version inherently does what I am hackishly trying to do.

I am trying to change TABLE_CONTENT dynamically and get the control to refresh itself client-side. In my ASP (classic), I build an array of arrays. (see tbl_schd[] below). There is a client-side calendar that, depending on which day you click, it swaps out the current array in TABLE_CONTENT foranother array from tbl_schd[]. I've tried to mimic behavior in Ttable_init() and tried using Ttable_show(0) to get a refresh, but it doesn't work.

Any help would be appreciated.

Here's the current snippet of code executed on onclick:

TABLE_CONTENT = tbl_schd[dt];
var q = Ttable_vars(TABLE_CAPT, TABLE_CONTENT, TABLE_LOOK);
Ttables[q.id] = q;
Ttable_show(q.id);

Here's a sample array tbl_schd[] used:

var tbl_schd = new Array();
tbl_schd["3/1/2006"] = [["Chaminade Apartments", "3/1/2006", "3/1/2006", "SC30MPHA", "test", "1", "$125.00", ""],["ChaminadeApartments", "3/1/2006", "3/1/2006", "COTX", "test tax", "1", "2.5%", ""],["Chaminade Apartments", "3/1/2006", "3/1/2006","ADMN", "test fee", "1", "$25.00", ""],["Chaminade Apartments", "3/1/2006", "3/1/2006", "FL08MH", "", "1", "$200.94",""],["Chaminade Apartments", "3/1/2006", "3/1/2006", "CYTX", "", "1", "1.125%", ""],["Chaminade Apartments", "3/1/2006","3/1/2006", "CYTX", "S.A. TRANSPORTATION TAX", "1", "0.25%", ""],["Chaminade Apartments", "3/1/2006", "3/1/2006", "COTX", "MTA","1", "0.5%", ""],["Chaminade Apartments", "3/1/2006", "3/1/2006", "STTX", "", "1", "6.25%", ""],["Chaminade Apartments","3/1/2006", "3/1/2006", "FL06MH", "", "1", "$452.05", ""],["Chaminade Apartments", "3/1/2006", "3/1/2006", "STTX", "", "1","6.25%", ""],["Chaminade Apartments", "3/1/2006", "3/1/2006", "CYTX", "S.A. TRANSPORTATION TAX", "1", "0.25%", ""],["ChaminadeApartments", "3/1/2006", "3/1/2006", "COTX", "MTA", "1", "0.5%", ""],["Chaminade Apartments", "3/1/2006", "3/1/2006", "CYTX","", "1", "1.125%", ""]];
tbl_schd["3/8/2006"] = [["Chaminade Apartments", "3/1/2006", "3/8/2006", "SC30MPHA", "test", "1", "$125.00", ""],["ChaminadeApartments", "3/1/2006", "3/8/2006", "COTX", "test tax", "1", "2.5%", ""]];
tbl_schd["3/10/2006"] = [["Chaminade Apartments", "3/10/2006", "3/10/2006", "ADMN", "test fee", "1", "$25.00", ""]];
tbl_schd["3/15/2006"] = [["Chaminade Apartments", "3/1/2006", "3/15/2006", "SC30MPHA", "test", "1", "$125.00", ""],["ChaminadeApartments", "3/1/2006", "3/15/2006", "COTX", "test tax", "1", "2.5%", ""]];
tbl_schd["3/20/2006"] = [["Chaminade Apartments", "3/20/2006", "3/20/2006", "ADMN", "test fee", "1", "$25.00", ""]];
tbl_schd["3/22/2006"] = [["Chaminade Apartments", "3/1/2006", "3/22/2006", "SC30MPHA", "test", "1", "$125.00", ""],["ChaminadeApartments", "3/1/2006", "3/22/2006", "COTX", "test tax", "1", "2.5%", ""]];
tbl_schd["3/29/2006"] = [["Chaminade Apartments", "3/1/2006", "3/29/2006", "SC30MPHA", "test", "1", "$125.00", ""],["ChaminadeApartments", "3/1/2006", "3/29/2006", "COTX", "test tax", "1", "2.5%", ""]];


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/