| 7:59 pm on May 3, 2012 (gmt 0)|
Try this one :
[edited by: phranque at 8:25 pm (utc) on May 3, 2012]
[edit reason] fixed sidescroll [/edit]
| 8:11 pm on May 3, 2012 (gmt 0)|
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?
| 8:18 pm on May 3, 2012 (gmt 0)|
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]
| 8:28 pm on May 3, 2012 (gmt 0)|
Why do you say that? My code is exactly a mailto link but just encoded..
| 8:31 pm on May 3, 2012 (gmt 0)|
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
| 8:39 pm on May 3, 2012 (gmt 0)|
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]
| 7:43 am on May 4, 2012 (gmt 0)|
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.
| 7:26 pm on May 4, 2012 (gmt 0)|
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.
| 7:36 pm on May 4, 2012 (gmt 0)|
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.
| 8:24 pm on May 4, 2012 (gmt 0)|
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)
| 10:12 pm on May 4, 2012 (gmt 0)|
"please tell us about you
and so on:
That's something actually I can do with my old school technique.
| 3:33 pm on May 5, 2012 (gmt 0)|