Author Topic: send toa friend script works on webpage but not in listmail  (Read 2807 times)

lynda.kane

  • Posts: 49
    • View Profile
    • http://www.realhealth-online.com
send toa friend script works on webpage but not in listmail
« 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
Comments from the Energy Awareness Training

"A truly transformational weekend."
"the most EMPOWERING of anything I've done before."
"I didn't realise it was going to change my life!"

www.EAT.energyawareness.org
www.EnergyEgg.com
Tel :  +44 (0)207 617 7521

lynda.kane

  • Posts: 49
    • View Profile
    • http://www.realhealth-online.com
send toa friend script works on webpage but not in listmail
« Reply #1 on: April 26, 2007, 10:03:47 am »
Comments from the Energy Awareness Training

"A truly transformational weekend."
"the most EMPOWERING of anything I've done before."
"I didn't realise it was going to change my life!"

www.EAT.energyawareness.org
www.EnergyEgg.com
Tel :  +44 (0)207 617 7521

mike2

  • Posts: 193
    • View Profile
send toa friend script works on webpage but not in listmail
« Reply #2 on: April 27, 2007, 03:50:01 am »
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.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
send toa friend script works on webpage but not in listmail
« Reply #3 on: April 27, 2007, 09:59:33 am »
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
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

lynda.kane

  • Posts: 49
    • View Profile
    • http://www.realhealth-online.com
send toa friend script works on webpage but not in listmail
« Reply #4 on: April 29, 2007, 03:26:16 am »
Thank you both!  Clear enough :)  So is it my ISP stopping it? Or Listmail?

Lynda
Comments from the Energy Awareness Training

"A truly transformational weekend."
"the most EMPOWERING of anything I've done before."
"I didn't realise it was going to change my life!"

www.EAT.energyawareness.org
www.EnergyEgg.com
Tel :  +44 (0)207 617 7521

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
send toa friend script works on webpage but not in listmail
« Reply #5 on: April 29, 2007, 02:10:23 pm »
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
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting