Skip to content

esendex/jquery.esendex.sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.Esendex.Sms

jQuery.Esendex.Sms is a Javascript solution which enables quick and easy integration with Esendex's Echo application for sending SMS text or voice messages. Here's how:

  • Add jQuery to you page (jquery-1.8 or later is supported)
  • Include the jquery.esendex.sms.js file
  • Apply the esendexSms function to an element or class

You will need to sign up for an account at www.esendex.com to send SMS or voice messages.

Use preset data when loading Echo

You can use the following attributes to preset data when the Echo application loads:

  • data-esendex-phone-number - This is the phone number you want to send a message to.
  • data-esendex-message - Allows you to specify a default message to be typed when Echo loads.
  • data-esendex-account - If you have multiple accounts you can control which account you want to send the message from. Your account reference is the number prefixed with EX (e.g EX0000001).

<span class="sms" data-esendex-phone-number="07800 000 000" data-esendex-message="Default message" data-esendex-account="EX000000">Send SMS Message with Echo</span>

Customize the appearance of links

The plugin converts the element it is applied on to a hyperlink. You can alter the CSS class used to display the link by setting the cssClass option when attaching the plugin e.g.

$(".sms").esendexSms({ cssClass: 'myHyperlinkStyle' });

A complete example can be seen in the sample file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published