Try this one :
[edited by: phranque at 8:25 pm (utc) on May 3, 2012]
[edit reason] fixed sidescroll [/edit]
Thank you. I did.
It doesn't work inside the library item (is exactly the same code, but without the subject thing)...
It does work outside the library item. The problem is that link has to be in my nav bar.
What's wrong with putting it inside the library? Any workaround?
you've got it looking like a URL, with a domain name at the beginning. you don't need that for a mailto address.
it should look something like this
so you need to encode this bit...
... if its not working maybe you've got a base href set in the <head> ? it might be adding the domain name to the beginning because of that
[edited by: londrum at 8:28 pm (utc) on May 3, 2012]
Why do you say that? My code is exactly a mailto link but just encoded..
because you said when you click it, you get taken to http://www.example.com..blah blah in the address bar.
that doesnt happen with a mailto link
hover over the mailto link, and see what it says in the status bar
Seems you have a point.
How do I get rid of the http://www.example.com part?
[edited by: phranque at 7:41 am (utc) on May 4, 2012]
[edit reason] edited to fix sidescroll [/edit]
you need to use an href attribute value which doesn't look like a relative url to the browser, which means you probably have to leave at least the url scheme (mailto:) unencoded.
Thanks! But sadly didn't work. Doing such a thing results in mailto working opening email client but in TO field appears literally: "mes@barilo
So no joy either.
encoding it won't protect it from spambots anyway, it's an old-school trick, about a hundred years old.
if it's protection from spambots you're after, then it's probably no protection at all.
old school or not worked fine to me for years, no complains. but doesn't into library items, what is a problem. (I'll have to move to jscript seems)
"please tell us about you
and so on:
That's something actually I can do with my old school technique.