PC Review


Reply
Thread Tools Rate Thread

appearing rows in tables

 
 
=?Utf-8?B?c3dlYzc0?=
Guest
Posts: n/a
 
      6th May 2005
i have been told by a freind that i need a java script for this to work but
if he is right i dont have a clue how to do it.

im am wonder if it is possible to have another row appear in a table when a
certain option is picked on a combo box.

thanks for any help

stu
 
Reply With Quote
 
 
 
 
Trevor L.
Guest
Posts: n/a
 
      7th May 2005
Hi there, stu
This code works.

You may have to modify it to put the 'onclick=' in a combo box rather than
just two buttons as I have coded it

I also note that the space required for the hidden row is not removed - the
row is still there, merely blank.

<html>
<head>
<script type="text/javascript">
function showhide(elmnt,state)
{ document.all(elmnt).style.visibility=state }
</script>
</head>

<input type="button"
onclick="showhide('cell2','visible');">
Show

<input type="button"
onclick="showhide('cell2','hidden');">
Hide
<body>

<table border>
<tr>
<td>Cell 1 </td>
</tr>

<tr id="cell2" style="visibility: hidden ;">
<td>Cell 2 </td>
</tr>
</table>
</body>
</html>

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au

swec74 wrote:
> i have been told by a freind that i need a java script for this to
> work but if he is right i dont have a clue how to do it.
>
> im am wonder if it is possible to have another row appear in a table
> when a certain option is picked on a combo box.
>
> thanks for any help
>
> stu



I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
colating multi rows of data into single rows - no to pivot tables! UKMAN Microsoft Excel Worksheet Functions 4 12th Mar 2010 04:11 PM
Pivot Tables: How do I show ALL field rows, including empty rows?? ekongirl@gmail.com Microsoft Excel Worksheet Functions 2 8th Apr 2005 06:21 PM
how can I stop sub total rows appearing in pivot tables in excel =?Utf-8?B?TGVl?= Microsoft Excel Misc 2 17th Sep 2004 01:26 PM
Strange arrows appearing in my tables Jona Microsoft Powerpoint 1 11th May 2004 07:21 PM
tables appearing in an access database Jim Hoeller Microsoft Access Database Table Design 1 7th Aug 2003 11:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:50 PM.