youngros Posted June 25, 2009 Report Share Posted June 25, 2009 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. Quote Link to comment Share on other sites More sharing options...
virtual Posted June 26, 2009 Report Share Posted June 26, 2009 Sorry I can't help, but when I clicked on the email links nothing at all happened, using Firefox on a Mac. Quote Link to comment Share on other sites More sharing options...
youngros Posted June 26, 2009 Author Report Share Posted June 26, 2009 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. Quote Link to comment Share on other sites More sharing options...
BeeDev Posted June 26, 2009 Report Share Posted June 26, 2009 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. Quote Link to comment Share on other sites More sharing options...
youngros Posted June 26, 2009 Author Report Share Posted June 26, 2009 Afraid that doesn't do anything, the link doesn't open at all. Quote Link to comment Share on other sites More sharing options...
BeeDev Posted June 26, 2009 Report Share Posted June 26, 2009 (edited) 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 June 26, 2009 by BeeDev Quote Link to comment Share on other sites More sharing options...
youngros Posted June 26, 2009 Author Report Share Posted June 26, 2009 Thanks, it is now working properly. I had spent some time trying different quotes to see what happened, what I hadn't tried was the use of both. Quote Link to comment Share on other sites More sharing options...
virtual Posted June 26, 2009 Report Share Posted June 26, 2009 OK I just went back and checked your revised version. On Firefox nothing at all happens, in Safari it opens the native Mac Mail program and Opera does too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.