1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

Sending SMS using AJAX through HTTP

Discussion in 'Java Script/AJAX' started by thomasqueen, Jan 23, 2013.

  1. thomasqueen

    thomasqueen New Member

    Joined:
    Jan 23, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Hey guys. For my project, I needed to find a way to send SMS messages from AJAX using HTTP. It turns out, it is easy to send messages from AJAX using HTTP requestes and a software called Ozeki NG SMS Gateway.

    First you need to download, install and configure Ozeki NG SMS Gateway software to your computer. You can download the source code from their ozekisms webpage.

    This code is particularly useful for
    • add SMS functionality to a website.
    • add SMS functionality to a corporate Intranet.
    • create automated SMS notifications.
    • increase website security by adding SMS login.
    Here is a part of the source code:

    smssend.js
    ...
    function GetXmlHttpObject()
    {
    var xmlHttp = null;
    try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp = new XMLHttpRequest();
    }
    catch (e)
    {
    // Internet Explorer
    try
    {
    xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    }
    return xmlHttp;
    }
    ...


    I hope this will be as useful to you as it is for me!Thomas
    Loading...
  2. lindanancy1

    lindanancy1 New Member

    Joined:
    Jan 22, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Location:
    United States
    Above the code is useful to my project. Implemented this code to my project and its working fine. its very helpful to me and save my time... .

Share This Page