NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page collapseable tables

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
4 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 05-30-2006, 05:04 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
ApocComputing's Avatar
Join Date: Jul 2005
Posts: 557
ApocComputing is a jewel in the roughApocComputing is a jewel in the roughApocComputing is a jewel in the rough
 



collapseable tables


How can you make tables collapse with the click of a button? like on vB, how you can minimize/collapse sections. thanks.
__________________
WiiBrowser
www.wiibrowser.com
UploadView
www.uploadview.com
ApocComputing is offline  
Old 05-30-2006, 05:25 PM   #2 (permalink)
NamePros Regular
 
hairyfreak's Avatar
Join Date: Dec 2005
Location: Derbyshire, UK
Posts: 885
hairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nicehairyfreak is just really nice
 



In the table you could put the following:
????: NamePros.com http://www.namepros.com/programming/202691-collapseable-tables.html

Code:
<table>
<tr>
<td onclick="document.this.style.height=0">Shrinking content</td>
</tr>
</table>
A simple little bit of JavaScript, although it requires the client to have JavaScript enabled on their browser. If it is not, nothing will happen when the table cell is clicked. The onclick event can be used in any part of the table as well, not just a single cell.
Hope this helps.
hairyfreak is offline  
Old 05-30-2006, 06:59 PM   #3 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Well VB actualy uses a DHTML dropdown menu. That is abit more complex than what harry did but it will work.

- Steve
__________________
I feel old.
iNod is offline  
Old 07-09-2006, 08:39 PM   #4 (permalink)
NamePros Expert
Join Date: Nov 2004
Location: Esse quam videri
Posts: 8,316
IAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond repute
 

Member of the Month
January 2005Member of the Month
February 2007
Ethan Allen Fund Child Abuse Child Abuse Child Abuse Child Abuse Save The Children Save The Children Child Abuse Child Abuse Child Abuse Child Abuse VA Tech Memorial Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
Must admit I'm looking for this, but I pasted the above and nothing happened....
Any help?
Need to click and have some content drop down...
-Allan
__________________

Something Witty This Way Comes...
IAmAllanShore is offline  
Old 07-10-2006, 07:20 AM   #5 (permalink)
Senior Member
 
Hitch's Avatar
Join Date: Aug 2005
Location: Uk, South Yorkshire
Posts: 1,228
Hitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to behold
 


Winner
PHP Programming - May 2007
Animal Rescue Third World Education Find Marrow Donors!
Hi,

I did some searching, and i found this tutorial, http://www.dustindiaz.com/dhtml-expa...apse-div-menu/

I think it's what you wanted. You can see it in action here, http://www.dustindiaz.com/basement/block-toggle.html

Hope this helps.

Adrian
Hitch is offline  
Old 07-10-2006, 08:16 AM   #6 (permalink)
NamePros Expert
Join Date: Nov 2004
Location: Esse quam videri
Posts: 8,316
IAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond repute
 

Member of the Month
January 2005Member of the Month
February 2007
Ethan Allen Fund Child Abuse Child Abuse Child Abuse Child Abuse Save The Children Save The Children Child Abuse Child Abuse Child Abuse Child Abuse VA Tech Memorial Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
Thanks, Adrian
Works well now!
-Allan
__________________

Something Witty This Way Comes...
IAmAllanShore is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:14 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger