ListMailPRO Email Marketing Software Forums
ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: lynda.kane on April 26, 2007, 10:02:47 am
-
:( Hi,
Befiore I do my own head in, can someone explain why my send to a friend script:
<form><input></form>
<script>
function ShowRecommend(){
var rndURL = (1000*Math.random());
var url = "http://www.example.com/cgi-bin/csRecommend/csRecommend.cgi?command=showrecommend&page="+escape(window.location);
h=500;
w=500;
newWindow = window.open(url,'search','width='+w+',height='+h+',top='+(screen.height-h)/2+',left='+(screen.width-w)/2+',location=0,directories=0,status=no,menuBar=no,scrollBars=no,resizable=no');
newWindow.focus();
}
</script>
works on my webpage, but when I import the code into listmail for an html email, it doesn't work in the email preview. will it work in the real email or just not work at all? I need to get this s.. .. . . g email out! Been working on it all day :(
Thanks!
Lynda
-
ps: this is the webpage where it does work!
http://www.realhealth-online.com/Archives/MobilePhones&Beehives.html
-
I'd guess because of scripting... when I clicked you link in my Firefox with the "Noscript" plugin on it didn't work on the website either.
I'd guess most email clients won't allow scripting in emails as it's possibly hazardous.
I'd say your best best in the email is to somehow just link to a page where they can recommend it to a friend or use a non scripted version or something of that nature.
-
Fine answer, Mike.
Lynda, as Mike mentioned you likely cannot use JavaScript in email. You may be able to use your script on your ListMail Custom HTML pages, however.
I have modified your post to remove your domain for your privacy.
Regards
-
Thank you both! Clear enough :) So is it my ISP stopping it? Or Listmail?
Lynda
-
Lynda,
It is the receiving email client's inability to process script. In all cases, I think, the email client will not be as full featured as a web browser.
Regards