Hi there,
thank you for the reply. I dont want to post the link, but I can post the relevant code below.
The script is currently working fine in Firefox but not in Safari. I haven't Tested in other browsers yet. I think the problem is that Safari is not writing "" around the src url for the Iframe.
---------------------------------
<h1>Thank you for your order</h1>
<div class="clear"></div>
<script language="javascript" type="text/javascript">
function getParameter( parameterName ) {
var queryString = window.location.search.substring(1);
var parameters = queryString.split('&');
for(var i = 0; i < parameters.length; i++) {
if (parameters[i].indexOf(parameterName.toLowerCase())>=0) {
var parameterValue = parameters[i].split('=');
return parameterValue[1];
}
}
return '[not supplied]';
}
var FirstName = getParameter('first_name');
var LastName = getParameter('last_name');
var PayerEmail = getParameter('payer_email');
var PayerEmailEsc = unescape(PayerEmail);
var TxnID = getParameter('txn_id');
var Status = getParameter('payment_status');
</script>
<div class="box-generic-editorial light">
<h2>Your Download Link</h2>
<script language="javascript" type="text/javascript">
document.write('<iframe src=
https://www.e-junkie.com/ecom/rp.php?noredirect=true&txn_id=' + TxnID + ' width=100%' + ' height=50px' + ' /></iframe>')
</script>
</div>
--------------------------
Code after here writes the variables from the URL into the page and is irrelevant to the problem at hand.