F
Frank H. Shaw
I finally got a friend to help me with the javascript and we are haveing a
problem with the code below the first button never bring the target and
action for the form
to the browser it seems like the form never gets posted. The second button
does work as it should and send the form to paypal. The funny thing the code
for the first button is exactly the same for the secend button. If you go to
the second button and then back to the first button. The first button still
fails to post the form to paypal. What could posibly be wrong and what is
hapening.
<div style="position:relative;">
<script language="javascript">
function showEach(){
document.getElementById('single').style.visibility = "visible";
document.getElementById('dozen').style.visibility = "hidden";
}
function showdoz(){
document.getElementById('single').style.visibility = "hidden";
document.getElementById('dozen').style.visibility = "visible";
}
</script>
<div style="font-size: 10.0pt; font-family: Trebuchet MS">
<input TYPE="radio" onclick="showEach()" checked NAME="R1" VALUE="20.95">
By each
</div>
<div style="font-size: 10.0pt; font-family: Trebuchet MS">
<input TYPE="radio" onclick="showdoz()" NAME="R1" VALUE="225.00">
By Dozen
</div>
<div id="single"
style="z-index:10;position:absolute;top:160;left:1;visibility:visible;">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="Pro Style ATF Ankle Brace with
Universal Fit">
<input type="hidden" name="item_number" value="212-E">
<input type="hidden" name="amount" value="20.95">
<input type="hidden" name="return"
value="http://www.skolsportsshop.com/success.htm">
<input type="hidden" name="cancel_return"
value="http://www.skolsportsshop.com/cancel.htm">
<input type="hidden" name="currency_code" value="USD">
<input TYPE="image" SRC="https://www.paypal.com/images/sc-but-03.gif"
NAME="submit2" alt="Make payments with PayPal - it's fast, free and secure!"
width="124" height="26">
<input type="hidden" name="add" value="1">
</form>
</div>
<div id="dozen"
style="z-index:0;position:absolute;top:120;left:1;visibility:hidden;z-index:0;">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="Pro Style ATF Ankle Brace with
Universal Fit">
<input type="hidden" name="item_number" value="212-D">
<input type="hidden" name="amount" value="225.00">
<input type="hidden" name="return"
value="http://www.skolsportsshop.com/success.htm">
<input type="hidden" name="cancel_return"
value="http://www.skolsportsshop.com/cancel.htm">
<input type="hidden" name="currency_code" value="USD">
<input TYPE="image" SRC="https://www.paypal.com/images/sc-but-03.gif"
NAME="submit1" alt="Make payments with PayPal - it's fast, free and secure!"
width="124" height="26">
<input type="hidden" name="add" value="1">
</form>
problem with the code below the first button never bring the target and
action for the form
to the browser it seems like the form never gets posted. The second button
does work as it should and send the form to paypal. The funny thing the code
for the first button is exactly the same for the secend button. If you go to
the second button and then back to the first button. The first button still
fails to post the form to paypal. What could posibly be wrong and what is
hapening.
<div style="position:relative;">
<script language="javascript">
function showEach(){
document.getElementById('single').style.visibility = "visible";
document.getElementById('dozen').style.visibility = "hidden";
}
function showdoz(){
document.getElementById('single').style.visibility = "hidden";
document.getElementById('dozen').style.visibility = "visible";
}
</script>
<div style="font-size: 10.0pt; font-family: Trebuchet MS">
<input TYPE="radio" onclick="showEach()" checked NAME="R1" VALUE="20.95">
By each
</div>
<div style="font-size: 10.0pt; font-family: Trebuchet MS">
<input TYPE="radio" onclick="showdoz()" NAME="R1" VALUE="225.00">
By Dozen
</div>
<div id="single"
style="z-index:10;position:absolute;top:160;left:1;visibility:visible;">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="Pro Style ATF Ankle Brace with
Universal Fit">
<input type="hidden" name="item_number" value="212-E">
<input type="hidden" name="amount" value="20.95">
<input type="hidden" name="return"
value="http://www.skolsportsshop.com/success.htm">
<input type="hidden" name="cancel_return"
value="http://www.skolsportsshop.com/cancel.htm">
<input type="hidden" name="currency_code" value="USD">
<input TYPE="image" SRC="https://www.paypal.com/images/sc-but-03.gif"
NAME="submit2" alt="Make payments with PayPal - it's fast, free and secure!"
width="124" height="26">
<input type="hidden" name="add" value="1">
</form>
</div>
<div id="dozen"
style="z-index:0;position:absolute;top:120;left:1;visibility:hidden;z-index:0;">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="(e-mail address removed)">
<input type="hidden" name="item_name" value="Pro Style ATF Ankle Brace with
Universal Fit">
<input type="hidden" name="item_number" value="212-D">
<input type="hidden" name="amount" value="225.00">
<input type="hidden" name="return"
value="http://www.skolsportsshop.com/success.htm">
<input type="hidden" name="cancel_return"
value="http://www.skolsportsshop.com/cancel.htm">
<input type="hidden" name="currency_code" value="USD">
<input TYPE="image" SRC="https://www.paypal.com/images/sc-but-03.gif"
NAME="submit1" alt="Make payments with PayPal - it's fast, free and secure!"
width="124" height="26">
<input type="hidden" name="add" value="1">
</form>