When clicking a mailto link in FF (Mac) the browser page redirects to
the php file I use to process the request instead of staying on the
current page. A new message is created so that part works fine.
This blank page is undesirable. Is my code wrong or is there a way to
fix this behavior? I like using PHP but if I need to I suppose I can
use another method.
I don’t think you can do anything about it. Your code is correct, and I’m pretty sure it will work in Safari and other browsers. Firefox is just being weird.
Hi Todd,
I had exactly the same issue with my Anti Spam action a while ago. One
of the options is to add the mailto link to a PHP file like this and I
found that both Firefox and IE 7 were stalling on the PHP page and
leaving the user high and dry. What I did in the end was to create a
hidden iFrame on the page (with a visibility:hidden style) and target
the href to the iFrame;
Now when the user clicks on the link the PHP page is loaded into the
hidden iFrame and as it’s hidden it doesn’t really matter if the page
remains in the frame or not.
I hope this helps.
Regards,
Tim.
On 6 May 2010, at 21:26, Todd wrote:
When clicking a mailto link in FF (Mac) the browser page redirects
to the php file I use to process the request instead of staying on
the current page. A new message is created so that part works fine.
This blank page is undesirable. Is my code wrong or is there a way
to fix this behavior? I like using PHP but if I need to I suppose I
can use another method.