I
infiniti
Hi,
I am coming across a problem with the javascript code on this
site (http://www.acnecomplex.net/buy.aspx). If you click on the yellow
'Proceed to Checkout' button on this page on a Mac OS or a Firefox
browser, it does not do anything. It works fine with IE on Windows.
I am calling a Javascript function funcKit when someone clicks on the
button.
HTML code for the button:
<a href="javascript:funcKit();" title="PROCEED TO CHECKOUT
»"><img src="images-acne-complex/buy-now/buy-now-fw-27.gif"
width="230" height="45" border="0" alt="Proceed to checkout"></a>
Javascript Function:
function funcKit()
{
var intResult;
var productArray = new Array(51,53,55,56,52,54,57,58);
intResult=0;
if (window.document.getElementById("checkbox1").checked)
{
intResult=intResult + 1;
}
if (window.document.getElementById("checkbox2").checked)
{
intResult=intResult + 2;
}
if (window.document.getElementById("checkbox3").checked)
{
intResult=intResult + 4;
}
window.location.href="detail.aspx?id=" + productArray[intResult];
}
Can anyone please tell me why it is not working and what is the
solution for this problem.
Any help is greatly appreciated.
Thanks,
Amber
I am coming across a problem with the javascript code on this
site (http://www.acnecomplex.net/buy.aspx). If you click on the yellow
'Proceed to Checkout' button on this page on a Mac OS or a Firefox
browser, it does not do anything. It works fine with IE on Windows.
I am calling a Javascript function funcKit when someone clicks on the
button.
HTML code for the button:
<a href="javascript:funcKit();" title="PROCEED TO CHECKOUT
»"><img src="images-acne-complex/buy-now/buy-now-fw-27.gif"
width="230" height="45" border="0" alt="Proceed to checkout"></a>
Javascript Function:
function funcKit()
{
var intResult;
var productArray = new Array(51,53,55,56,52,54,57,58);
intResult=0;
if (window.document.getElementById("checkbox1").checked)
{
intResult=intResult + 1;
}
if (window.document.getElementById("checkbox2").checked)
{
intResult=intResult + 2;
}
if (window.document.getElementById("checkbox3").checked)
{
intResult=intResult + 4;
}
window.location.href="detail.aspx?id=" + productArray[intResult];
}
Can anyone please tell me why it is not working and what is the
solution for this problem.
Any help is greatly appreciated.
Thanks,
Amber