I'm attempting to output a link from a page of a site back to the linking site.
invoiceNo & rawPrice are variables that are extracted from the page prior to this and values extracted and converted to the appropriate string and float values.
If I hard code values in (invoice001) and (29.99), for example, the script runs fine. However, as it stands all that happens is the variable name being displayed in the link.
Any help would be greatly appreciated.
Thanks
<script type="text/javascript">
window.invoiceData = $('h2').text();
window.invoiceNo = invoiceData.substr(14);
window.priceBeforeCurrencyStrip = $('td.priceCol.balance').text();
window.price = parseFloat(priceBeforeCurrencyStrip.match(/[0-9.]+/));
</script>
<script type="text/javascript"
src="https://.......&SaleID='+invoiceNo+'&OrderVal='+price'">
</script>