(excerpt from _getColor.cfm)
<cfform>
<cfselect id="Colors" message="Please Select Color" query="getColor"
name="Color" required="yes" value="Name">
</cfselect> </cfform>
found within
<form name="frmCalcCaps">
<tr>
<td><div align="right">Cap 1 </div></td>
<td><input type="text" name="Item1Quantity" onchange="Total()"
size="7"/></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><input name="UPCcap1" type="text" size="12"/></td>
<td><input name="cap1Price" type="text" size="6"/></td>
</tr>
.
.
.
<td><input name="CalcOutput" type="text" value="0"
size="7"/></td>
causing my form to not process JS correctly? Does anyone have clue to
what is wrong now? Thanks!
Lucas
Here is code for table
<table width="800" border="0" align="left" cellpadding="0"
cellspacing="5">
<form name="frmCalcCaps">
<script language="JavaScript">
<!--
function Total() {
var q, i, captotal, tax, sh, total;
captotal = 0;
nitems = 6;
for (i=1; i<nitems+1; i++) {
eval("q = document.frmCalcCaps.Item" + i +
"Quantity.value;");
if (q) {
eval("total=document.frmCalcCaps.Item" + i +
"Quantity.value");
captotal = parseInt(captotal) +
parseInt(total);
}
}
document.frmCalcCaps.CalcOutput.value = captotal
}
// -->
</script>
<tr>
<td width="45"><div align="center"></div></td>
<td width="47"><div align="center" class="style1">Qty</div></td>
<td width="134"><div align="center" class="style1">Cap Color
</div></td>
<td width="140"><div align="center" class="style1">Eyelet/Button
Color </div></td>
<td width="168"><div align="center" class="style1">Sandwich Color
</div></td>
<td width="119"><div align="center" class="style1">UPC Code
</div></td>
<td width="101"><div align="center"
class="style1">Pre-Price</div></td>
</tr>
<tr>
<td><div align="right">Cap 1 </div></td>
<td><input type="text" name="Item1Quantity" onchange="Total()"
size="7"/></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><input name="UPCcap1" type="text" size="12"/></td>
<td><input name="cap1Price" type="text" size="6"/></td>
</tr>
<tr>
<td><div align="right">Cap 2 </div></td>
<td><input type="text" name="Item2Quantity" onchange="Total()"
size="7"/></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><input name="UPCcap2" type="text" size="12"/></td>
<td><input name="cap2Price" type="text" size="6"/></td>
</tr>
<tr>
<td><div align="right">Cap 3 </div></td>
<td><input type="text" name="Item3Quantity" onchange="Total()"
size="7"/></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><input name="UPCcap3" type="text" size="12"/></td>
<td><input name="cap3Price" type="text" size="6"/></td>
</tr>
<tr>
<td><div align="right">Cap 4 </div></td>
<td><input type="text" name="Item4Quantity" onchange="Total()"
size="7"/></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><input name="UPCcap4" type="text" size="12"/></td>
<td><input name="cap4Price" type="text" size="6"/></td>
</tr>
<tr>
<td><div align="right">Cap 5 </div></td>
<td><input type="text" name="Item5Quantity" onchange="Total()"
size="7"/></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><input name="UPCcap5" type="text" size="12"/></td>
<td><input name="cap5Price" type="text" size="6"/></td>
</tr>
<tr>
<td><div align="right">Cap 6 </div></td>
<td><input type="text" name="Item6Quantity" onchange="Total()"
size="7"/></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><cfinclude template="_getColor.cfm"></td>
<td><input name="UPCcap6" type="text" size="12"/></td>
<td><input name="cap6Price" type="text" size="6"/></td>
</tr>
<tr>
<td height="20"> </td>
<td><input name="CalcOutput" type="text" value="0"
size="7"/></td>
</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</form>
</table>