Click to See Complete Forum and Search --> : Expandable Tables


danscan
12-18-2003, 10:15 AM
I have a Very large table that has smaller tables embedded in them. Unfortunately if all the data is shown it throughs off the formating and looks ugly. I want to know if there was a way I could embed a button possiblly a plus sign + that when click would show the embedded table. Then switch the + to - for hiding it again.

I need it to hold a table though. And not create it on the fly.

Here is how I kinda want it to look.

+ Daves Sales Figures


-Daves Sales Figures
Vermont $345000 12/4/2003
New Jersey $14000 11/6/2003
New York $456000 10/2/2003


I need to do it all in a tables to keep it modular enough for later changes. So does anyone have a code snippet or a website where the programmer does this.

requestcode
12-18-2003, 11:16 AM
How about something like this:
http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm

There may be others there.

danscan
12-18-2003, 12:51 PM
Looks great! Now I just have to figure out a way of hidding and revealing layers. That are positioned in a table. I hop I can do that.