safe_mailto problem |
[eluser]Perkin5[/eluser]
I have a contact link like this: Code: <?php echo safe_mailto('[email protected]', 'click here'); ?> but the words 'click me' fail to show. If I delete 'safe_', in other words make it into an ordinary link, it works fine. With safe_mailto the obfuscated code nevertheless shows up in view source. I have jquery running but I can't see why that would be a problem. Can anyone shed any light on why this is happening?
[eluser]Perkin5[/eluser]
Seems I managed to find a problem that's foxed everybody. Can it really be that I'm the only one this has happened to and nobody can suggest a fix? Here's the generated 'obfuscated' javascript if that helps at all: Code: //<![CDATA[ Incidentally, where in the snippet above it says [removed] the code says 'document write' with a stop in the middle!
[eluser]Perkin5[/eluser]
Further to my last, I now suspect it's not safe_mail itself that's the problem. Safe_mail writes javascript code that relies on the document write function (sorry I can't write that correctly as the forum doesn't allow it). I've tried using a test js script inside the codeigniter view and I can't get document write to work at all so obviously safe_mail or auto_mail will also not work. What can be stopping it?
[eluser]Perkin5[/eluser]
Solved my own problem! I was using Paul Irish's HTML5 Boilerplate and it includes a js plugin file that has this script: Code: // catch all [removed]() calls I disabled it and lo! everything works. |
Welcome Guest, Not a member yet? Register Sign In |