Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Sending SMS using AJAX through HTTP


  • Please log in to reply

#1
thomasqueen

thomasqueen

    New Member

  • Member
  • Pip
  • 1 posts
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 webpage: http://ozekisms.com/index.php?owpn=246

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
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP