Expandable and Collapsible HTML tables

12-07-10, 05:56 AM
|
|
New Member
|
|
Join Date: Dec 2010
Posts: 1
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
Expandable and Collapsible HTML tables
================================================== ============
I want the tables to start out as collapsed. When i use the above script they already display as expanded. What code can i insert to make them hidden and then show when expand is clicked. Thanks for your time and help.
Last edited by Nico; 12-07-10 at 05:59 AM.
|

12-08-10, 03:48 AM
|
 |
Newbie Coder
|
|
Join Date: Nov 2010
Location: Northwest USA
Posts: 38
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
Basic idea is there you can hammer out details.
__________________
PHP AID - PHP Scripts, News, PHP Downloads, All Free
|
|
The Following User Says Thank You to phpaid For This Useful Post:
|
|

12-11-10, 06:57 AM
|
 |
Newbie Coder
|
|
Join Date: Nov 2010
Location: Setúbal, near Lisbon
Posts: 89
Thanks: 3
Thanked 7 Times in 7 Posts
|
|
|
|
|
The Following User Says Thank You to Icepick.pt For This Useful Post:
|
|

12-17-10, 09:32 PM
|
 |
Community Liaison
|
|
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
|
|
Let's simplify things a little.
__________________
Jerry Broughton
Last edited by job0107; 12-17-10 at 11:27 PM.
|
|
The Following 2 Users Say Thank You to job0107 For This Useful Post:
|
|

08-01-11, 01:47 PM
|
|
New Member
|
|
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
thanks
Thanks for the great script. This in fact is what I have been searching for. One question though, is it possible via javascript to collapse the other table when another one is expanded, i.e. suppose you have two tables (like in the example), you expand the first one. Now say that you want to expand the second one, then the first one should automatically collapse again.. Not sure that this is at all possible, but I am turning to the guru's here who might have a solution??
|

08-03-11, 01:24 AM
|
 |
Community Liaison
|
|
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
|
|
Quote:
Originally Posted by gvannauw
Thanks for the great script. This in fact is what I have been searching for. One question though, is it possible via javascript to collapse the other table when another one is expanded, i.e. suppose you have two tables (like in the example), you expand the first one. Now say that you want to expand the second one, then the first one should automatically collapse again.. Not sure that this is at all possible, but I am turning to the guru's here who might have a solution??
|
I think this is probably what you are looking for.
__________________
Jerry Broughton
|

09-06-11, 03:15 PM
|
|
New Member
|
|
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Not working
Hi Jerry,
I have tried using your code, but it does not work for me.
When I try it on Tryit Editor v1.4, it works fine, but when I try and place it on my website, it again comes out expanded.
Pleas advice,
Abhinav
|

09-06-11, 06:23 PM
|
 |
Community Liaison
|
|
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
|
|
Quote:
Originally Posted by abhinavcambridge
Hi Jerry,
I have tried using your code, but it does not work for me.
When I try it on Tryit Editor v1.4, it works fine, but when I try and place it on my website, it again comes out expanded.
Pleas advice,
Abhinav
|
You will have to post your code so I can see what you are doing if you want me to help you.
__________________
Jerry Broughton
|

09-07-11, 12:41 PM
|
|
New Member
|
|
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks so much for replying so quickly!
Quote:
Originally Posted by job0107
You will have to post your code so I can see what you are doing if you want me to help you.
|
I am sorry Jerry. My fault. This is the code I am using. My website is pretty old and I suspect its working on the older version of HTML. I am not a developer but a marketing guy.. Trying to build a website to confirm my job. I am so grateful to all developers posting their creations online.
Last edited by abhinavcambridge; 09-07-11 at 12:43 PM.
Reason: Added PHP tags
|

09-07-11, 05:46 PM
|
 |
Community Liaison
|
|
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
|
|
Quote:
Originally Posted by abhinavcambridge
I am sorry Jerry. My fault. This is the code I am using. My website is pretty old and I suspect its working on the older version of HTML. I am not a developer but a marketing guy.. Trying to build a website to confirm my job. I am so grateful to all developers posting their creations online.
|
You didn't follow through with the posts and grab the updated version.
I have tested this code in FireFox and IE.
__________________
Jerry Broughton
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|