I am using the following javascript to submit a form via an href and also pass a variable:
<script language="JavaScript" type="text/javascript">
<!--
function doit (selectedtype)
{
document.ecom.Action2.value=selectedtype;
document.ecom.submit();
}
-->
</script>
The call is as follows:
<input type="hidden" name="Action2">
<a href="javascript:doit('Edit')">Edit Product</a>
The problem I am having is that sometimes it works and then other times it does not. It almost appears as if CF is missing the Action2 variable when it is being passed.
Does anyone have any experience with this and what I could do to rectify the problem?
Thank you!
<script language="JavaScript" type="text/javascript">
<!--
function doit (selectedtype)
{
document.ecom.Action2.value=selectedtype;
document.ecom.submit();
}
-->
</script>
The call is as follows:
<input type="hidden" name="Action2">
<a href="javascript:doit('Edit')">Edit Product</a>
The problem I am having is that sometimes it works and then other times it does not. It almost appears as if CF is missing the Action2 variable when it is being passed.
Does anyone have any experience with this and what I could do to rectify the problem?
Thank you!