Sunday, January 25th, 2009

CodeIgniter safe_mailto with JQuery Curvy Corners Script Breaks in Firefox

I noticed an issue a couple of days ago that prevented Firefox (Mac and Windows) from rendering a page of a site that I'm working on. I’m using CodeIgniter version 1.7.0. Initially, it appeared that any time I used the safe_mailto command from the CodeIgniter URL Helper class, Firefox wouldn't render the page.

Ok, after scratching my head for a while, I discovered that apparently there is some sort of conflict between the obfuscated mailto link and another script that is running on the page. I also have a script that executes client side when the page loads that will round the corners of a given div. When the mailto link is inside a div that is being “rounded”, it causes Firefox to hang. Bummer.

Moral of the story: if you need a safe_mailto link, design your page so that everything has right angle corners. :)



You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.