tc3596
Technical User
- Mar 16, 2001
- 283
On clicking a button, I am trying to call a script that checks to see if form.YachTxt.Value is not empty. If true then redirect to another page. I keep getting syntax errors.
<form name=baco action="CSSDKPIScreenTest.asp">
<button class="BtnRefresh" value = "1" accesskey="R" id="Request" name="Request" onclick="javascript:Yacht()">
<u>R</u>-<%=Term.String(0, "Request")%>
</button>
Here is my function:
<script language="javasript">
function Yacht()
{
document.Form1.action = "EPRequestTypes.asp?Action=1&ItemCode=" + Baco.YachtTxt.Value + "&CustomerContactID=" + Baco.ContTxt.Value + "&Description=" + Baco.VoyageTxt.Value + "&CustomerID=" + Baco.AccountTxt.Value";
document.Form1.submit();
return true;
}
</script>
Any thoughts on this?
<form name=baco action="CSSDKPIScreenTest.asp">
<button class="BtnRefresh" value = "1" accesskey="R" id="Request" name="Request" onclick="javascript:Yacht()">
<u>R</u>-<%=Term.String(0, "Request")%>
</button>
Here is my function:
<script language="javasript">
function Yacht()
{
document.Form1.action = "EPRequestTypes.asp?Action=1&ItemCode=" + Baco.YachtTxt.Value + "&CustomerContactID=" + Baco.ContTxt.Value + "&Description=" + Baco.VoyageTxt.Value + "&CustomerID=" + Baco.AccountTxt.Value";
document.Form1.submit();
return true;
}
</script>
Any thoughts on this?