Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Altering TABLE_CONTENT
ptiseo
Newbie

Posts: 1
Registered: 3/1/2006
Member Is Offline
posted on 3/1/2006 at 10:04 PM Reply With Quote
Altering TABLE_CONTENT


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%", ""]];
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Simple
XP-styled
3D designed
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004