palma's Avatar
palma 4
24 Asked
1 Answered
0 Best
0
No one has voted on this question yet :(
2 years, 8 months ago

I need a locally storable link-share javascript, along the lines of addtoany, addthis, sharethis. What are my options?

I want to allow users to share links via a button on my site, but the JavaScript controlling the button must reside on my site, not on a third-party's like AddToAny. I especially want to know about an email button, where you enter your sender and recipient addresses and a server mails on the link. Are there third-party servers that will handle message delivery, and JavaScripts to communicate with them?
Tip for best answer: M$8.00
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

3 Answers

0
kingkool68's Avatar
kingkool68 | 2 years, 8 months ago
4
It's pretty easy to write your own JavaScript for the sharing capability. All you need to do is construct a URL a certain way for each service you want your visitors to share your site on.

A nice jQuery one can be found at http://keith-wood.name/bookmark.html

An e-mail button requires a script on your backend to create the e-mail and send it off. This script can be written in any backend language like PHP, .NET, Ruby, or Python etc. but they all generally work the same.

1. A form is submitted from the HTML page containing variables like the senders e-mail address, custom message etc.

2. Your backend script recieves those variables and constructs an e-mail message.

3. The backed script sends the e-mail to the recipient specified by the user.

Example scripts:
PHP http://www.w3schools.com/PHP/php_mail.asp
.NET http://wiki.lessthandot.com/index.php/ASP.NET:_Send_an_email

If you're not able to access a backend to do something like this you can always use a mailto: link which will open the users e-mail program and pre-fill certain fields.

Here is how to build a mailto: link http://www.ianr.unl.edu/internet/mailto.html

The JavaScript needed to make this work is pretty basic. Here is the basic algorithm:

1. Create a form so the user can input recipient email address, message etc.

2. Capture the input as variables.

3. Set the users browser location (aka the address bar) to the mailto: link using the variables to fill in the email address and other information.

You can see a brief example of this here -> http://snipt.org/mZi

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
onek's Avatar
onek | 2 years, 8 months ago
3
I found this script:

http://script.wareseeker.com/Flash/email-me-button.zip/329571140b

It doesn't use a third party email server, as it opens the user email client, but I think it serves the main purpose of what you are looking for.

Other options, I think are only available through programs like ShareThis: http://sharethis.com/

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
wit_vivek's Avatar
wit_vivek | 1 year, 4 months ago
0
sending mail can be done easily by php take a look at this source

http://www.vivekmodi.com/2011/01/sending-mail-in-php/

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates