Link to home
Start Free TrialLog in
Avatar of stroudtx
stroudtx

asked on

onClick="changeAction(' Script missng and needed

I've been running this site for years with this page working fine.  I updated IE to 8 and now if shows a warning on this line.  I searched for the changeadction funtion and it's not there.  The problem is the form name is the shopping cart which is dynamic.  Any suggestions on how to add the funtion and make the warning go away?
<form action="<%=cStr(Request.ServerVariables("SCRIPT_NAME"))%><%=WA_eCart_IIf((Request.ServerVariables("QUERY_STRING") <> ""), "?" & Request.ServerVariables("QUERY_STRING"), "")%>" method="post" name="eCart_1_ATC_<%=product_details.Fields("Product_ID").value%>" class="formstyle" id="eCart_1_ATC_<%=product_details.Fields("Product_ID").value%>">
 
<input type="image" src="Elements/addtoregistry.gif" border="0" value="Add To Cart" name="registry_1_ATC" onClick="changeAction('<%=cStr(Request.ServerVariables("SCRIPT_NAME"))%><%=WA_eCart_IIf((Request.ServerVariables("QUERY_STRING") <> ""), "?" & Request.ServerVariables("QUERY_STRING"), "")%>');" alt="Add to Registry">

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of bugada
bugada
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stroudtx
stroudtx

ASKER

Thank you!! Perfect!