Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

show/hide not working

Status
Not open for further replies.

jlindahl

Programmer
Sep 23, 2003
46
US
i cannot get this show/hide thing to work. it always shows the first <div>, which is the first table created from a matching value in my recordset.

here is my code:
<script>
function showHide(inDiv)
{
thisDiv = document.getElementById(inDiv);
if (thisDiv.style.display != &quot;none&quot;)
{
thisDiv.style.display = &quot;none&quot;;
}
else
{
thisDiv.style.display = &quot;block&quot;;
}
}
</script>

Sub Input_Show()
<form method='get' name='uploadForm' action='Input.asp'>
<table border='1'><tr><td><select Name=&quot;sItem&quot; onClick=&quot;showHide(sItem.value);return(false);&quot;><option value=&quot;zero&quot;>---</option>
<% Search_Item %>
</td></tr>
<%
sql = &quot;select item, field from wotrack.pivot_fields order by item, field&quot;
openrs rs, sql
dim tempItem
dim displayString
with rs
.moveFirst
do while not .eof
<div id='&quot; & .fields(0) & &quot;' style='display:none;'><table border='1'>&quot; &_
<tr><td>&quot; & .fields(0) & &quot;</td><td>&quot; & .fields(1) & &quot;</td></tr>&quot;
tempItem = .fields(0).value
.moveNext
do while tempItem = .fields(0).value
<tr><td>&quot; & .fields(0) & &quot;</td><td>&quot; & .fields(1) & &quot;</td></tr>&quot;
.moveNext
loop
</table></div>&quot;
loop
end with
<tr><td colspan='2' align='right'><input type='submit' name='Submit' value='Submit'></td></tr></table></form>&quot;
End Sub
 
can you give us some of the HTML that this asp page writes?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Hi jlindahl, mwolf,

here's a working model:

Code:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<html><head><title>TEST</title>
<script>
function shwhd(el) {
if(document.getElementById(el).style.display == 'block'){
    document.getElementById(el).style.display = 'none'; }
   else { document.getElementById(el).style.display = 'block'; }
}
</script></head><body>
<select id=&quot;selel&quot; onChange=&quot;shwhd(this.value);&quot;>
<option value=&quot;first&quot;>First</option>
<option value=&quot;sec&quot;>Second</option></select>
<p>
<table id=&quot;first&quot; style=&quot;display:block;&quot;><tbody><tr>
<td>first cell</td><td>FRIST TABLE</td></tr>
<td>first cell</td><td>sec cell</td></tr>
<td>first cell</td><td>sec cell</td></tr></table>
<p>
<table id=&quot;sec&quot; style=&quot;display:block;&quot;><tbody><tr>
<td>first cell</td><td>SECOND TABLE</td></tr>
<td>first cell</td><td>sec cell</td></tr>
<td>first cell</td><td>sec cell</td></tr></table>
</body></html>

2b||!2b
 
here is my entire code. it works except for the problem i mentioned earlier. Lrnmore, i tried your code, but it still did not work. there must be something little i am missing. the output produced is a form with drop downs to select from. one of the selections will have a table (the additional part of the form) apear. when the form is first loaded, all the <div> tables are hidden. for some reason, when i run my code, the first <div> table will never become hidden. it is the first one created in the loop, plus it is the first one in the order of my recordset.
Code:
<html>
<head>
<title>Pivot Table Depository</title>
<script>
function showHide(inDiv)
{
 thisDiv = document.getElementById(inDiv);
 if (thisDiv.style.display != &quot;none&quot;)
   {thisDiv.style.display = &quot;none&quot;;}
 else
   {thisDiv.style.display = &quot;block&quot;;}
}
</script>
</head>

<body link=&quot;blue&quot; vlink=&quot;blue&quot; alink=&quot;blue&quot; bgcolor=&quot;#99CCFF&quot;>

<%
' Default CustomIncludes end
'-------------------------------
Dim InputString

'===============================
' Step through each form
'-------------------------------
response.write &quot;<table border='1'><tr><td>&quot;
Input_Show
response.write &quot;<a href='default.asp'>Back</a>      &quot; & InputString & &quot;</td></tr></table>&quot;
'-------------------------------
' Destroy all object variables
'-------------------------------
InputString = &quot;&quot;
oraConn.Close
Set oraConn = Nothing
'===============================

'===============================
' Display Search Form
'-------------------------------
Sub Input_Show()
   response.write &quot;<form method='get' name='uploadForm' action='test.asp'><table border='1' bgcolor='powderblue'><tr><td colspan='2' align='center' bgcolor='blue'><font color='white'><b>Report Information</b></font></td></tr>&quot; &_
	 								&quot;<tr><td bgcolor='Steelblue'><font color='white'><b>Dept.</b></font></td><td>&quot;
	 Search_Department
	 response.write &quot;</td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Year</b></font></td><td>&quot;
	 Search_Year
	 response.write &quot;</td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Month</b></font></td><td>&quot;
	 Search_Month
	 response.write &quot;</td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Item</b></font></td><td>&quot;
	 %>
	 								<select Name=&quot;sItem&quot; onClick=&quot;showHide(sItem.value);&quot;><option value=&quot;zero&quot;>---</option>
		<%
	 Search_Item
	 response.write &quot;</td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Summary</b></font></td><td><textarea cols='60' rows='4' name='Summary'></textarea></td></tr>&quot; &_
	 								&quot;<tr><td bgcolor='Steelblue'><font color='white'><b>File</b></font></td><td>&quot;
			%>						<input type=&quot;text&quot; name=&quot;filelink&quot; size=&quot;50&quot;>
										<input type=&quot;button&quot; onclick=&quot;window.open('GetFile1.asp', 'newwindow',config='height=200, width=440,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no')&quot; value=&quot;Attach File&quot;>
			<%						
	 response.write &quot;</td></tr>&quot;
	 sql = &quot;select item, field from wotrack.pivot_fields order by item, field&quot;
	 openrs rs, sql
	 dim tempItem
	 dim displayString
	 with rs
	    .moveFirst
			do while not .eof
			   response.write &quot;<div id='&quot; & .fields(0) & &quot;' style='display:none;'><table border='1'>&quot; &_
				 								&quot;<tr><td>Total # of Fields checked</td><td><input type='text' name='&quot; & .fields(0) & &quot;_totalNum' size='5'></td></tr>&quot; &_
												&quot;<tr><td>Total # Correct <input type='text' name='&quot; & .fields(0) & &quot;_correct' size='5'></td><td>Total # Wrong <input type='text' name='&quot; & .fields(0) & &quot;_wrong' size='5'></td></tr>&quot; &_
										    &quot;<tr><td>&quot; & .fields(0) & &quot;_&quot; & .fields(1) & &quot;</td><td><input type='text' name='&quot; & .fields(0) & &quot;_&quot; & .fields(1) & &quot;' size='5'>Wrong</td></tr>&quot;
			   tempItem = .fields(0).value
				 .moveNext
				 do while tempItem = .fields(0).value
				    response.write &quot;<tr><td>&quot; & .fields(1) & &quot;</td><td><input type='text' name='&quot; & .fields(0) & &quot;_&quot; & .fields(1) & &quot;' size='5'>Wrong</td></tr>&quot;
				    .moveNext
				 loop
				 response.write &quot;</table></div>&quot;
			loop
	 end with
	 response.write &quot;<tr><td colspan='2' align='right'><input type='submit' name='Submit' value='Submit'></td></tr></table></form>&quot;
End Sub
'===============================
%>
</body>
</html>
[code]
 
jlindahl,

Best to do as mwolf suggests, load the page in your browser
and then post the &quot;true&quot; page source that the browser receives.

2b||!2b
 
by that, i guess you mean this code....generated from the browser.

Code:
<html>
<head>
<title>Pivot Table Depository</title>
<script>
function showHide(inDiv)
{
 thisDiv = document.getElementById(inDiv);
 if (thisDiv.style.display != &quot;none&quot;)
   {thisDiv.style.display = &quot;none&quot;;}
 else
   {thisDiv.style.display = &quot;block&quot;;}
}
</script>
</head>

<body link=&quot;blue&quot; vlink=&quot;blue&quot; alink=&quot;blue&quot; bgcolor=&quot;#99CCFF&quot;>

<table border='1'><tr><td><form method='post' name='uploadForm' action='test.asp'><table border='1' bgcolor='powderblue'><tr><td colspan='2' align='center' bgcolor='blue'><font color='white'><b>Report Information</b></font></td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Dept.</b></font></td><td><Select Name='sDepartment'><OPTION VALUE=''>----</OPTION><OPTION VALUE='GAS'>Gas</OPTION><OPTION VALUE='ELECTRIC'>Electric</OPTION></select></td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Year</b></font></td><td><Select Name='sYear'><OPTION VALUE=''>----</OPTION><OPTION VALUE='2003'>2003</OPTION><OPTION VALUE='2004'>2004</OPTION><OPTION VALUE='2005'>2005</OPTION></select></td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Month</b></font></td><td><Select Name='sMonth'><OPTION VALUE=''>----</OPTION> <OPTION VALUE='Jan'>Jan</OPTION> <OPTION VALUE='Feb'>Feb</OPTION> <OPTION VALUE='Mar'>Mar</OPTION> <OPTION VALUE='Apr'>Apr</OPTION> <OPTION VALUE='May'>May</OPTION> <OPTION VALUE='Jun'>Jun</OPTION> <OPTION VALUE='Jul'>Jul</OPTION> <OPTION VALUE='Aug'>Aug</OPTION> <OPTION VALUE='Sep'>Sep</OPTION> <OPTION VALUE='Oct'>Oct</OPTION> <OPTION VALUE='Nov'>Nov</OPTION> <OPTION VALUE='Dec'>Dec</OPTION> </select></td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Item</b></font></td><td>
	 								<select Name=&quot;sItem&quot; onClick=&quot;showHide(sItem.value);&quot;><option value=&quot;zero&quot;>---</option>
		<option value='FITTINGS'>FITTINGS</option><option value='FLOW CONTROL DEVICES'>FLOW CONTROL DEVICES</option><option value='FUSE'>FUSE</option><option value='MAIN LENGTH'>MAIN LENGTH</option><option value='MAINS'>MAINS</option><option value='MUG'>MUG</option><option value='POLES'>POLES</option><option value='REGULATOR STATIONS'>REGULATOR STATIONS</option><option value='SERVICE LENGTH'>SERVICE LENGTH</option><option value='SERVICES'>SERVICES</option><option value='SWITCHES'>SWITCHES</option><option value='TRANSFORMER'>TRANSFORMER</option><option value='URD_SEC'>URD_SEC</option><option value='VALVES'>VALVES</option></select></td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>Summary</b></font></td><td><textarea cols='60' rows='4' name='Summary'></textarea></td></tr><tr><td bgcolor='Steelblue'><font color='white'><b>File</b></font></td><td>						<input type=&quot;text&quot; name=&quot;filelink&quot; size=&quot;50&quot;>
										<input type=&quot;button&quot; onclick=&quot;window.open('GetFile1.asp', 'newwindow',config='height=200, width=440,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no')&quot; value=&quot;Attach File&quot;>
			</td></tr><div id='FUSE' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='FUSE_totalNum' size='5'>&nbsp(fieldsXobjectIds)</td></tr><tr><td>Total # Correct&nbsp<input type='text' name='FUSE_correct' size='5'></td><td>Total # Wrong&nbsp<input type='text' name='FUSE_wrong' size='5'></td></tr><tr><td>FUSE_F1</td><td><input type='text' name='FUSE_F1' size='5'>Wrong</td></tr><tr><td>F2</td><td><input type='text' name='FUSE_F2' size='5'>Wrong</td></tr><tr><td>F3</td><td><input type='text' name='FUSE_F3' size='5'>Wrong</td></tr><tr><td>F4</td><td><input type='text' name='FUSE_F4' size='5'>Wrong</td></tr><tr><td>F5</td><td><input type='text' name='FUSE_F5' size='5'>Wrong</td></tr><tr><td>F6</td><td><input type='text' name='FUSE_F6' size='5'>Wrong</td></tr></table></div><div id='MAINS' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='MAINS_totalNum' size='5'>&nbsp(fieldsXobjectIds)</td></tr><tr><td>Total # Correct&nbsp<input type='text' name='MAINS_correct' size='5'></td><td>Total # Wrong&nbsp<input type='text' name='MAINS_wrong' size='5'></td></tr><tr><td>MAINS_F1</td><td><input type='text' name='MAINS_F1' size='5'>Wrong</td></tr><tr><td>F2</td><td><input type='text' name='MAINS_F2' size='5'>Wrong</td></tr><tr><td>F3</td><td><input type='text' name='MAINS_F3' size='5'>Wrong</td></tr><tr><td>F4</td><td><input type='text' name='MAINS_F4' size='5'>Wrong</td></tr></table></div><div id='SERVICES' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='SERVICES_totalNum' size='5'>&nbsp(fieldsXobjectIds)</td></tr><tr><td>Total # Correct&nbsp<input type='text' name='SERVICES_correct' size='5'></td><td>Total # Wrong&nbsp<input type='text' name='SERVICES_wrong' size='5'></td></tr><tr><td>SERVICES_A1</td><td><input type='text' name='SERVICES_A1' size='5'>Wrong</td></tr><tr><td>A2</td><td><input type='text' name='SERVICES_A2' size='5'>Wrong</td></tr><tr><td>A3</td><td><input type='text' name='SERVICES_A3' size='5'>Wrong</td></tr></table></div><div id='TRANSFORMER' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='TRANSFORMER_totalNum' size='5'>&nbsp(fieldsXobjectIds)</td></tr><tr><td>Total # Correct&nbsp<input type='text' name='TRANSFORMER_correct' size='5'></td><td>Total # Wrong&nbsp<input type='text' name='TRANSFORMER_wrong' size='5'></td></tr><tr><td>TRANSFORMER_F1</td><td><input type='text' name='TRANSFORMER_F1' size='5'>Wrong</td></tr><tr><td>F2</td><td><input type='text' name='TRANSFORMER_F2' size='5'>Wrong</td></tr><tr><td>F3</td><td><input type='text' name='TRANSFORMER_F3' size='5'>Wrong</td></tr><tr><td>F4</td><td><input type='text' name='TRANSFORMER_F4' size='5'>Wrong</td></tr></table></div><div id='VALVES' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='VALVES_totalNum' size='5'>&nbsp(fieldsXobjectIds)</td></tr><tr><td>Total # Correct&nbsp<input type='text' name='VALVES_correct' size='5'></td><td>Total # Wrong&nbsp<input type='text' name='VALVES_wrong' size='5'></td></tr><tr><td>VALVES_F1</td><td><input type='text' name='VALVES_F1' size='5'>Wrong</td></tr><tr><td>F2</td><td><input type='text' name='VALVES_F2' size='5'>Wrong</td></tr><tr><td>F3</td><td><input type='text' name='VALVES_F3' size='5'>Wrong</td></tr><tr><td>F4</td><td><input type='text' name='VALVES_F4' size='5'>Wrong</td></tr><tr><td>F5</td><td><input type='text' name='VALVES_F5' size='5'>Wrong</td></tr></table></div><tr><td colspan='2' align='right'><input type='submit' name='Submit' value='Submit'></td></tr></table></form><a href='default.asp'>Back</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</td></tr></table>
</body>
</html>
[code]
 
The first value is &quot;FITTINGS&quot; but there is no ID for that in the form, what gives?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
what should we show/hide when someone selects &quot;FITTINGS&quot;?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
well, the recordset is pulling from an incomplete table at the moment. there are only a few records, hence more options than div id's. so for right now, not all selections produce a hidden table.
 
Use this....
<script>
function showHide(inDiv)
{

if (document.getElementById(inDiv)){
thisDiv = document.getElementById(inDiv);
if (thisDiv.style.display != &quot;none&quot;){
thisDiv.style.display = &quot;none&quot;;
}
else{
thisDiv.style.display = &quot;block&quot;;
}
}

}
</script>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Here are some suggested changes:

<script>
function showHide(inDiv){
if(inDiv != 'zero'){
thisDiv = document.getElementById(inDiv);
if (thisDiv.style.display != &quot;none&quot;)
{thisDiv.style.display = &quot;none&quot;;}
else
{thisDiv.style.display = &quot;block&quot;;}}
else{ alert(&quot;Make a Selection..&quot;);
document.uploadForm.sItem.focus();}
}
</script>

and you created a div with no home so open a tr and td for:
</td></tr><tr><td><div id='FUSE' style='display:none;'>
<table border='1'><tr><td>Total # of Fields checked</td>

And make sure you have div id's for all the values in
sItem the only ones I know work for sure are fuses
and valves.

2b||!2b
 
i tried the things with the script and neither of them made things better, but making a home for the div's worked great. i put each div in its own row and column and now the first div of the recordset does not show up anymore.

thanks for all the help!!
 
The HTML you posted worked fine with the change I posted. What's not working for you?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
it was still showing the first div created by the recordset at all times.
 
Here's the page I tested with the changes incorp.
the div was set up incorrectly in your original code.

Again the only div's that work are valves and fuses.
Give it a try.

Code:
<html><head><title>Pivot Table Depository</title>
<script>
function showHide(inDiv){
 if(inDiv != 'zero'){
 thisDiv = document.getElementById(inDiv);
 if (thisDiv.style.display != &quot;none&quot;)
   {thisDiv.style.display = &quot;none&quot;;}
 else
   {thisDiv.style.display = &quot;block&quot;;}}
 else{ alert(&quot;Make a Selection..&quot;);
 document.uploadForm.sItem.focus();}
}
</script>
</head>

<body link=&quot;blue&quot; vlink=&quot;blue&quot; alink=&quot;blue&quot; bgcolor=&quot;#99CCFF&quot;>

<table border='1'><tr><td>
<form method='post' name='uploadForm' action='test.asp'>
<table border='1' bgcolor='powderblue'>
<tr><td colspan='2' align='center' bgcolor='blue'>
<font color='white'><b>Report Information</b></font></td></tr>
<tr><td bgcolor='Steelblue'><font color='white'><b>Dept.</b></font></td>
<td><Select Name='sDepartment'>
<OPTION VALUE=''>----</OPTION>
<OPTION VALUE='GAS'>Gas</OPTION>
<OPTION VALUE='ELECTRIC'>Electric</OPTION></select></td></tr>
<tr><td bgcolor='Steelblue'><font color='white'><b>Year</b></font></td>
<td><Select Name='sYear'><OPTION VALUE=''>----</OPTION>
<OPTION VALUE='2003'>2003</OPTION>
<OPTION VALUE='2004'>2004</OPTION>
<OPTION VALUE='2005'>2005</OPTION></select></td></tr>
<tr><td bgcolor='Steelblue'><font color='white'><b>Month</b></font></td>
<td><Select Name='sMonth'><OPTION VALUE=''>----</OPTION>
<OPTION VALUE='Jan'>Jan</OPTION>
<OPTION VALUE='Feb'>Feb</OPTION>
<OPTION VALUE='Mar'>Mar</OPTION>
<OPTION VALUE='Apr'>Apr</OPTION>
<OPTION VALUE='May'>May</OPTION>
<OPTION VALUE='Jun'>Jun</OPTION>
<OPTION VALUE='Jul'>Jul</OPTION>
<OPTION VALUE='Aug'>Aug</OPTION>
<OPTION VALUE='Sep'>Sep</OPTION>
<OPTION VALUE='Oct'>Oct</OPTION>
<OPTION VALUE='Nov'>Nov</OPTION>
<OPTION VALUE='Dec'>Dec</OPTION></select></td></tr>
<tr><td bgcolor='Steelblue'><font color='white'><b>Item</b></font></td>
<td><select Name=&quot;sItem&quot; onChange=&quot;showHide(this.value);&quot;>
<option value=&quot;zero&quot;>---</option>
<option value='FITTINGS'>FITTINGS</option>
<option value='FLOW CONTROL DEVICES'>FLOW CONTROL DEVICES</option>
<option value='FUSE'>FUSE</option>
<option value='MAIN LENGTH'>MAIN LENGTH</option>
<option value='MAINS'>MAINS</option>
<option value='MUG'>MUG</option>
<option value='POLES'>POLES</option>
<option value='REGULATOR STATIONS'>REGULATOR STATIONS</option>
<option value='SERVICE LENGTH'>SERVICE LENGTH</option>
<option value='SERVICES'>SERVICES</option>
<option value='SWITCHES'>SWITCHES</option>
<option value='TRANSFORMER'>TRANSFORMER</option>
<option value='URD_SEC'>URD_SEC</option>
<option value='VALVES'>VALVES</option></select></td></tr>
<tr><td bgcolor='Steelblue'><font color='white'><b>Summary</b></font></td>
<td><textarea cols='60' rows='4' name='Summary'></textarea></td></tr>
<tr><td bgcolor='Steelblue'><font color='white'><b>File</b></font></td>
<td><input type=&quot;text&quot; name=&quot;filelink&quot; size=&quot;50&quot;>
<input type=&quot;button&quot; onclick=&quot;window.open('GetFile1.asp','newwindow',config='height=200,'+
  'width=440,toolbar=no,menubar=no,scrollbars=no,resizable=yes,status=no')&quot; value=&quot;Attach File&quot;>
</td></tr><tr><td><div id='FUSE' style='display:none;'>
<table border='1'><tr><td>Total # of Fields checked</td>
<td><input type='text' name='FUSE_totalNum' size='5'> (fieldsXobjectIds)</td></tr>
<tr><td>Total # Correct <input type='text' name='FUSE_correct' size='5'></td>
<td>Total # Wrong <input type='text' name='FUSE_wrong' size='5'></td></tr>
<tr><td>FUSE_F1</td><td><input type='text' name='FUSE_F1' size='5'>Wrong</td></tr>
<tr><td>F2</td><td><input type='text' name='FUSE_F2' size='5'>Wrong</td></tr>
<tr><td>F3</td><td><input type='text' name='FUSE_F3' size='5'>Wrong</td></tr>
<tr><td>F4</td><td><input type='text' name='FUSE_F4' size='5'>Wrong</td></tr>
<tr><td>F5</td><td><input type='text' name='FUSE_F5' size='5'>Wrong</td></tr>
<tr><td>F6</td><td><input type='text' name='FUSE_F6' size='5'>Wrong</td>
</tr></table></div>
<div id='MAINS' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='MAINS_totalNum' size='5'> (fieldsXobjectIds)</td></tr><tr><td>Total # Correct <input type='text' name='MAINS_correct' size='5'></td><td>Total # Wrong <input type='text' name='MAINS_wrong' size='5'></td></tr><tr><td>MAINS_F1</td><td><input type='text' name='MAINS_F1' size='5'>Wrong</td></tr><tr><td>F2</td><td><input type='text' name='MAINS_F2' size='5'>Wrong</td></tr><tr><td>F3</td><td><input type='text' name='MAINS_F3' size='5'>Wrong</td></tr><tr><td>F4</td><td><input type='text' name='MAINS_F4' size='5'>Wrong</td></tr></table></div><div id='SERVICES' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='SERVICES_totalNum' size='5'> (fieldsXobjectIds)</td></tr><tr><td>Total # Correct <input type='text' name='SERVICES_correct' size='5'></td><td>Total # Wrong <input type='text' name='SERVICES_wrong' size='5'></td></tr><tr><td>SERVICES_A1</td><td><input type='text' name='SERVICES_A1' size='5'>Wrong</td></tr><tr><td>A2</td><td><input type='text' name='SERVICES_A2' size='5'>Wrong</td></tr><tr><td>A3</td><td><input type='text' name='SERVICES_A3' size='5'>Wrong</td></tr></table></div><div id='TRANSFORMER' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='TRANSFORMER_totalNum' size='5'> (fieldsXobjectIds)</td></tr><tr><td>Total # Correct <input type='text' name='TRANSFORMER_correct' size='5'></td><td>Total # Wrong <input type='text' name='TRANSFORMER_wrong' size='5'></td></tr><tr><td>TRANSFORMER_F1</td><td><input type='text' name='TRANSFORMER_F1' size='5'>Wrong</td></tr><tr><td>F2</td><td><input type='text' name='TRANSFORMER_F2' size='5'>Wrong</td></tr><tr><td>F3</td><td><input type='text' name='TRANSFORMER_F3' size='5'>Wrong</td></tr><tr><td>F4</td><td><input type='text' name='TRANSFORMER_F4' size='5'>Wrong</td></tr></table></div><div id='VALVES' style='display:none;'><table border='1'><tr><td>Total # of Fields checked</td><td><input type='text' name='VALVES_totalNum' size='5'> (fieldsXobjectIds)</td></tr><tr><td>Total # Correct <input type='text' name='VALVES_correct' size='5'></td><td>Total # Wrong <input type='text' name='VALVES_wrong' size='5'></td></tr><tr><td>VALVES_F1</td><td><input type='text' name='VALVES_F1' size='5'>Wrong</td></tr><tr><td>F2</td><td><input type='text' name='VALVES_F2' size='5'>Wrong</td></tr><tr><td>F3</td><td><input type='text' name='VALVES_F3' size='5'>Wrong</td></tr><tr><td>F4</td><td><input type='text' name='VALVES_F4' size='5'>Wrong</td></tr><tr><td>F5</td><td><input type='text' name='VALVES_F5' size='5'>Wrong</td></tr></table></div><tr><td colspan='2' align='right'><input type='submit' name='Submit' value='Submit'></td></tr></table></form><a href='default.asp'>Back</a>      </td></tr></table>
</body>
</html>

2b||!2b
 
i did give this a try too. i had to keem the mouse button down to make a selection inside the option menu, i think due the the onchange event. but once i got over that, it did work. like i said, i just needed to add that extra row with a column to place the div's and it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top