hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Enumerating Collapsible Tables....
Reply

Forum Jump

Enumerating Collapsible Tables....

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-07-2003, 04:15 PM
komugi komugi is offline
Newbie
 
Join Date: Apr 2003
Posts: 12

Enumerating Collapsible Tables....


Argh.. my brain is stuck and I don't remember how to enumerate the functions..

<script type="text/javascript" language="javascript">

var tableToggle = false;
function toggletable() {
var temp = document.getElementById('table');
if (tableToggle) {
tableToggle = false;
temp.style.position = 'absolute';
temp.style.visibility = 'hidden';
} else {
tableToggle = true;
temp.style.position = 'relative';
temp.style.visibility = 'visible';
}
}

</script>

I'm trying to get it so that the element table will go up by 1 since there is much more then 1 table I need to collapse.



Sponsored Links
  #2  
Old 10-07-2003, 04:31 PM
FrzzMan FrzzMan is offline
Web Hosting Guru
 
Join Date: Dec 2001
Location: Hanoi - Vietnam
Posts: 306
can you explain it more detail what you are trying to do... i can help you about this problem, but i don't understand you...

  #3  
Old 10-07-2003, 04:42 PM
komugi komugi is offline
Newbie
 
Join Date: Apr 2003
Posts: 12
Well, I'm trying to make the tables expand/collapse. But the javascript here currently only allows for 1 table to expand and collapse.

I currently have around 15 or so tables that needs to do this. For example, this script only does one table which named the id of 'table'

I want to be able to id many tables of table1, table2, table3... so on without having to copy the script over and over again for each variable.

Sponsored Links
  #4  
Old 10-07-2003, 04:55 PM
komugi komugi is offline
Newbie
 
Join Date: Apr 2003
Posts: 12
well, here is an example : http://www.mangaco.org/projectbackup.htm

Click on the first one of Anatolia Story

I want to do that, except with ALL of them. The script doesn't allow for that to work correctly.. So I'm trying to think of a way to enumerate the variables

Reply

Related posts from TheWhir.com
Title Type Date Posted
Announcing the WHD.global VIP Pass Winner! Blog 2014-03-27 16:00:39
Google Releases Hosted Database Service Cloud SQL to General Availability Web Hosting News 2014-02-12 13:46:02
Jelastic Launches Version 1.9.1 of Java and PHP Hosting Platform Web Hosting News 2013-05-21 09:39:09
Amazon Web Services Reduces Price of DynamoDB NoSQL, Adds Reserved Capacity Web Hosting News 2013-03-08 15:19:40
Web Host Go Daddy Says Internal Network Events, Not Hacker, Caused Service Outage Web Hosting News 2012-09-12 11:56:11


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?