Jump to content

Emails


youngros

Recommended Posts

It has just been pointed out to me that all the emails on one of my sites all go to the same person. Now they are set up with javascript to go to individuals. This is the page http://www.holytrinity-madeira.org/meet_us.php

All the forwarders are in place, but I notice that when you click on the link it opens with the same email address for all.

Any help on this one please.

Link to comment
Share on other sites

Thanks Virtual, will get someone else to check that out as one of the Church wardens uses Firefox on Mac.

 

Seemed to remember you helped out once before on some css, as it rendered differently on the mac. Now got a problem with it on IE7 and a bit on IE8.

 

Hoping someone will have the solution for me.

Link to comment
Share on other sites

I think it's happening because you're setting onclick="parent.location=Mailme" and not an actual e-mail address. Everytime the script runs that sets the email, it will overwrite the previous Mailme variable. So when the browser finishes rendering that page, var Mailme will have treasurer@holytrinity-madeira.org.

 

However if you do

 

document.write("onclick=\"parent.location="+Mailme+"\"> ");

 

It should fix the mail problem.

 

However it still doesn't fix the Mac problem, it seems like a Javascript issue, Mac's don't understand parent.location or something, not really sure what the problem is as I'm on a PC.

Link to comment
Share on other sites

Well another option is to create a different variable each time. Mailme1, Mailme2, Mailme3 etc, that way your variables won't get overwritten.

 

 

Edit:

 

Sorry on my original post I forgot the single quotes. Here's the revised version:

 


 

Note the single quotes before and after "+Mailme+"

Edited by BeeDev
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...