M
Mangler
I am having a heck of a time because I dont know jscript; hope someone
can help....
I have a function that adds to form fields,, easy right?
function Add()
{
var num1 = document.form2.bagqty.value;
var num2 = document.form2.hdntot.value;
document.form2.hdnbagqty.value = parseFloat(num1) +
parseFloat(num2);
}
The issue I have is that the form field hdnbagqty has an ASP variable
attached to it as a unique name so mutliple fields can be updated on
the same page. For example:
hdnbagqty<%=intRecID%> is the name so when the query is run it shows
.....
hdnbagqty1
hdnbagqty2
hdhbagqty3
so an array is created based on the unique number and the statement
knows which row to update and so on....
The purpose of that function is to auto calculate what gets updated. I
just cant figure out how to get that unique name into that function.
can help....
I have a function that adds to form fields,, easy right?
function Add()
{
var num1 = document.form2.bagqty.value;
var num2 = document.form2.hdntot.value;
document.form2.hdnbagqty.value = parseFloat(num1) +
parseFloat(num2);
}
The issue I have is that the form field hdnbagqty has an ASP variable
attached to it as a unique name so mutliple fields can be updated on
the same page. For example:
hdnbagqty<%=intRecID%> is the name so when the query is run it shows
.....
hdnbagqty1
hdnbagqty2
hdhbagqty3
so an array is created based on the unique number and the statement
knows which row to update and so on....
The purpose of that function is to auto calculate what gets updated. I
just cant figure out how to get that unique name into that function.