H
Hursh
Hi,
I am trying to some values in a hidden field in a form to another ASP
page using POST method.
The problem is that when I change the value of the hidden field using
javascript after the page has been displayed, on submit it does get
posted. However on checking up whether the value has been set for the
hidden field, i find that the value i want to pass has been set.
the code is as following
**************************************
function submitForm()
{
var assetList=self.frames.y1_.makeString();
// this shows that the value i want to set has been set
alert(self.document.forms.hwForm.assetIDList.Value)
self.document.forms.hwForm.submit();
}
<FORM NAME="hwForm" METHOD="POST" ACTION="inventory.asp">
<INPUT TYPE="hidden" NAME="assetList" VALUE="init"></INPUT><BR>
</FORM>
**************************************
in the inventory.asp i do the following
Dim i
For i=1 to Request.Form.Count
Response.Write "<BR>" & Request.Form.Key(i) & " = " &
Request.Form.Item(i)
Next
Here it does not set the value to the new one i have set thru some
other javascript function.
Can anyone point any mistake or workaround of this problem
tia
hursh
I am trying to some values in a hidden field in a form to another ASP
page using POST method.
The problem is that when I change the value of the hidden field using
javascript after the page has been displayed, on submit it does get
posted. However on checking up whether the value has been set for the
hidden field, i find that the value i want to pass has been set.
the code is as following
**************************************
function submitForm()
{
var assetList=self.frames.y1_.makeString();
// this shows that the value i want to set has been set
alert(self.document.forms.hwForm.assetIDList.Value)
self.document.forms.hwForm.submit();
}
<FORM NAME="hwForm" METHOD="POST" ACTION="inventory.asp">
<INPUT TYPE="hidden" NAME="assetList" VALUE="init"></INPUT><BR>
</FORM>
**************************************
in the inventory.asp i do the following
Dim i
For i=1 to Request.Form.Count
Response.Write "<BR>" & Request.Form.Key(i) & " = " &
Request.Form.Item(i)
Next
Here it does not set the value to the new one i have set thru some
other javascript function.
Can anyone point any mistake or workaround of this problem
tia
hursh