![]() |
safe_mailto problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: safe_mailto problem (/showthread.php?tid=43381) |
safe_mailto problem - El Forum - 07-09-2011 [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? safe_mailto problem - El Forum - 07-20-2011 [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! safe_mailto problem - El Forum - 07-20-2011 [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? safe_mailto problem - El Forum - 07-20-2011 [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. |