I created a web form that is a table view with 15 rows and 5 colums. the bottom row and right most column are for calculated values. When a user enters a value in any of the fields, calculated values are adjusted. I have the form working perfectly in IE, but in Forefox, the calculated value fields remain blank. To keep users from modifying the totals, I set the calculated fields, disadled="disabled". Since disabled fields don't pass when form is submitted via post, I created a hidden field to hold the value. The hidden field has the same name as the disabled field except the last letter of the name duplicates. I.E. PreKDiscrepancy & PreKDiscrepancyy.
Here is an example of the calculation for the first row:
DH = parseInt(document.forms(0).PreKCurrentTrained.value, 10) + parseInt(document.forms(0).PreKAbsent.value, 10);
DH = DH + parseInt(document.forms(0).PreKOptOut.value, 10);
DH = parseInt(document.forms(0).PreKEnroll.value, 10) - DH;
document.forms(0).PreKDiscrepancy.value = DH
document.forms(0).PreKDiscrepancyy.value = DH
what about the code does firefox not like?