I have a form with two buttons (accept, decline). When "accept" is choosen, it goes to billing. When "decline" is choosen, it displays a message then goes back to the main page.
The code works fine in IE, but in Netscape both "accept" and "decline" buttons take me to the billing page. Why is this?
function validate(form) {
if (working == false) {
working = true;
document.forms[1].submit();
return false;
} else {
return false;
}
}
function getConfirmation() {
message = "decline message here.";
if (confirm(message)) {
document.forms[1].decline.value="I Decline";
document.forms[1].submit();
return false;
} else {
return false;
}
}
<FORM NAME="Subscriber" ACTION="<%= ... %>" METHOD="POST">
<a href="#" onClick="return validate(document.forms[1],this);"><img NAME="accept" ALT="Accept" SRC="/accept.gif" border=0></a>
<a href="#" onClick="return getConfirmation();">
<img NAME="decline" ALT="Decline" SRC="/decline.gif" border=0></a>
Thanks,
The code works fine in IE, but in Netscape both "accept" and "decline" buttons take me to the billing page. Why is this?
function validate(form) {
if (working == false) {
working = true;
document.forms[1].submit();
return false;
} else {
return false;
}
}
function getConfirmation() {
message = "decline message here.";
if (confirm(message)) {
document.forms[1].decline.value="I Decline";
document.forms[1].submit();
return false;
} else {
return false;
}
}
<FORM NAME="Subscriber" ACTION="<%= ... %>" METHOD="POST">
<a href="#" onClick="return validate(document.forms[1],this);"><img NAME="accept" ALT="Accept" SRC="/accept.gif" border=0></a>
<a href="#" onClick="return getConfirmation();">
<img NAME="decline" ALT="Decline" SRC="/decline.gif" border=0></a>
Thanks,