Hi,
I have added some simple javascript in the checkout-step4.html page but I can't get it working.
<script language="javascript" type="text/javascript">
var x=[BALANCE];
var y=1.21;
var vat=x/y;
document.write (vat);
</script>
It does not seem to proces the code block [BALANCE] because if I change it to a manual input like '100' it outputs the right result (= 82.64) ...
Does this mean I can not use the code blocks as a variable in javascript? Or am I missing something here?
Thanks in advance.
Arend
I have added some simple javascript in the checkout-step4.html page but I can't get it working.
<script language="javascript" type="text/javascript">
var x=[BALANCE];
var y=1.21;
var vat=x/y;
document.write (vat);
</script>
It does not seem to proces the code block [BALANCE] because if I change it to a manual input like '100' it outputs the right result (= 82.64) ...
Does this mean I can not use the code blocks as a variable in javascript? Or am I missing something here?
Thanks in advance.
Arend
Comment