I want to use the Email script as shown in the Advanced Users Guide V7 but with a slight modification. The original script is below:
<input type=text value="" size=40 onchange="
var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';
if (this.value != '') {
location.href='mailto:' + this.value +'?subject=Take%20a%20look%20at%20NETQUOTEVAR:PRODUCTNAME&body=I%20saw%20' + thisloc + '%20and%20thought%20you%20would%20be%20interested.'
}
">
<input type=button value="OK">
I would like to replace the input button and text box with a simple icon, that when clicked brings up the email client in the same way, with the same message and product url. The only thing it won't include is the friend's email address which will have to be filled in manually in the email client.
My variation is as follows:
<input type="image" id="email" src="email_icon.gif" alt="Tell a friend about this product" onclick="
var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';
{
location.href='mailto:' +'?subject=Take%20a%20look%20at%20NETQUOTEVAR:PRODUCTNAME&body=I%20saw%20' + thisloc + '%20and%20thought%20you%20would%20be%20interested.'
}
">
This seems to work, but in the background the website goes to General Script Error page with the error message "Error: Could not locate the product reference." which I can't seem to get around. Oddly, the product reference does appear appended to the url so the error message is misleading. I know Actinic doesn't support script changes but I would be so grateful for some help on this as I'm so close!
<input type=text value="" size=40 onchange="
var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';
if (this.value != '') {
location.href='mailto:' + this.value +'?subject=Take%20a%20look%20at%20NETQUOTEVAR:PRODUCTNAME&body=I%20saw%20' + thisloc + '%20and%20thought%20you%20would%20be%20interested.'
}
">
<input type=button value="OK">
I would like to replace the input button and text box with a simple icon, that when clicked brings up the email client in the same way, with the same message and product url. The only thing it won't include is the friend's email address which will have to be filled in manually in the email client.
My variation is as follows:
<input type="image" id="email" src="email_icon.gif" alt="Tell a friend about this product" onclick="
var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';
{
location.href='mailto:' +'?subject=Take%20a%20look%20at%20NETQUOTEVAR:PRODUCTNAME&body=I%20saw%20' + thisloc + '%20and%20thought%20you%20would%20be%20interested.'
}
">
This seems to work, but in the background the website goes to General Script Error page with the error message "Error: Could not locate the product reference." which I can't seem to get around. Oddly, the product reference does appear appended to the url so the error message is misleading. I know Actinic doesn't support script changes but I would be so grateful for some help on this as I'm so close!
Comment