The url I need to process is:
http://demo.missionfamily.org/index.php?route=product/allevent
and it should become:
1.
https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fdemo.missionfamily.org%2Findex.php%3Froute%3Dproduct%2Fallevent&t=All+Events+Listing
2.
https://twitter.com/intent/tweet?text=Mission%20Family%20ACLI&url=http%3A%2F%2Fdemo.missionfamily.org%2Findex.php%3Froute%3Dproduct%2Fallevent&via=Mission_Family&original_referer=http%3A%2F%2Fdemo.missionfamily.org%2Findex.php%3Froute%3Dproduct%2Fallevent
3.
I don't know how to formulate this one at all, but here are the details:
mailto: email address has to be empty as it will need to be filled in
subject: whatever I can get from: var thisTitle (whose spaces will need to be converted into %20)
body: whatever I can get from: var thisLink (this will be a url link which will need to be converted to the format compatible with the maito syntax.
So in the third case basically the result should look something like: mailto:?subject=Congrats%2
0Obama&bod
y=http%3A%
2F%2Fdemo.
missionfam
ily.org%2F
index.php%
3Froute%3D
product%2F
allevent&t
=All+Event
s+Listing
Please help, as I am completely clueless. The rest of the code for the structure where these links have to go I have already managed but I haven't a clue as to how to generate these links
thanks in advance
Open in new window