Welcome Guest, Not a member yet? Register   Sign In
safe_mailto() with <noscript> fallback
#3

[eluser]Prophet[/eluser]
[quote author="clooner" date="1277814169"]I don't think a safe_mailto will work without any sort of client side scripting. It looks like it now will generate something that will be readable by no one Big Grin.

It seems like you haven't thought this through![/quote]
My code produces something along the lines of (using my email address):

Code:
<noscript><a href="mailto:[email protected]">contact us</a></noscript>

Yes, there are bots that will interpret this just fine and still harvest the email address. But in terms of usability, isn't that better than displaying nothing at all (which is what safe_mailto does if the user has javascript disabled)?

Edit: ignore the plain-text mailto. It is "encrypted" but the forums seem to want to convert everything


Messages In This Thread
safe_mailto() with <noscript> fallback - by El Forum - 06-29-2010, 12:53 AM
safe_mailto() with <noscript> fallback - by El Forum - 06-29-2010, 01:22 AM
safe_mailto() with <noscript> fallback - by El Forum - 06-29-2010, 01:29 AM
safe_mailto() with <noscript> fallback - by El Forum - 06-29-2010, 01:38 AM
safe_mailto() with <noscript> fallback - by El Forum - 06-29-2010, 02:02 AM
safe_mailto() with <noscript> fallback - by El Forum - 06-29-2010, 02:21 AM
safe_mailto() with <noscript> fallback - by El Forum - 06-29-2010, 02:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB