Zong SMS - Gateway Sending cmid.ctt Files

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

you Full information?

Poll ended at Fri Jan 23, 2009 3:29 pm

Yup it is?
1
50%
No , We know Pretty well
1
50%
 
Total votes : 2

Zong SMS - Gateway Sending cmid.ctt Files

Postby shaams » Sat Oct 25, 2008 3:29 pm

Dear Guys,

Can any one Download the cmid.ctt File


Zong.com.pk

http://203.82.55.30/websms/default.aspx ... =your-name



Still Waiting for Reply....



kindly more Developer to broke the Server expection

<SCRIPT language="Javascript">

function alphanumeric(alphane)
{
var numaric = alphane;
for(var j=0; j<numaric.length; j++)
{
var alphaa = numaric.charAt(j);
var hh = alphaa.charCodeAt(0);
if((hh > 47 && hh<59) || (hh > 64 && hh<91) || (hh > 96 && hh<123))
{
}
else {
return false;
}
}

return true;
}
function charscount(msg, frm)
{
frm.num_chars.value = 147 - msg.length;
// m = msg;
}
function moveDivDown()
{
var el = document.getElementById("chatwindow")
st = el.scrollTop;
el.scrollTop = el.scrollTop + 300
}
function trim(str)
{
return str.replace(/^\s*|\s*$/g,"");
}

var XMLHttp;
var XMLHttp2;

/*SEND TO SERVER*/
function GetXmlHttpObject()
{
var objXMLHttp=null
/* if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}*/
var ua = navigator.userAgent.toLowerCase();
if (!window.ActiveXObject)
objXMLHttp = new XMLHttpRequest();
else if (ua.indexOf('msie 5') == -1)
objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP");
else
objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");

return objXMLHttp
}

function updateChatWindow()
{
var txt_Msg, txt_mNumber, txt_Nick, myMessage

txt_MNumber = document.getElementById("txt_MNumber").value
txt_Msg = document.getElementById("txt_Msg").value
txt_Nick = document.getElementById("txt_Nick").value
txt_Nick = trim (txt_Nick)
if (txt_Nick.length==0)
{ alert ("Please enter the Nick Name")
document.getElementById("txt_Nick").focus()
document.getElementById("txt_Nick").value=""
return false; }
if (!alphanumeric(txt_Nick))
{ alert ("Please enter a valid alphanumeric Nick Name")
document.getElementById("txt_Nick").value=""
document.getElementById("txt_Nick").focus()
return false; }

if (txt_Msg.length==0)
return false;

if (txt_MNumber.length != 10)
{
alert ("Please Enter a 10 digit recipient mobile number")
return false
}
if (!IsNumeric (txt_MNumber))
{
alert ("Please Enter a valid 10 digit recipient mobile number")
return false
}

document.getElementById("txt_Msg").value = ""
document.getElementById("num_chars").value = "147"
document.getElementById("txt_Msg").focus()
myMessage = '<font size=2 style=verdana color=blue>' +txt_Nick + ' Says: ' + txt_Msg + '</font><br>'
document.getElementById("chatwindow").innerHTML= document.getElementById("chatwindow").innerHTML + myMessage
moveDivDown()
XMLHttp = GetXmlHttpObject()
if (XMLHttp==null)
{
alert ("Browser does not support HTTP Request")
return false;
}

var url="default.aspx?"
url=url+"txt_Msg="+txt_Msg
url=url+"&txt_MNumber="+txt_MNumber
url=url+"&txt_Nick="+txt_Nick
url=url+"&sid="+Math.random()
XMLHttp.onreadystatechange=stateChanged
XMLHttp.open("GET",url,true)
XMLHttp.send(null)
return false;
}
function stateChanged()
{
if (XMLHttp.readyState==4 || XMLHttp.readyState=="complete")
{
try {
document.getElementById("chatwindow").innerHTML= document.getElementById("chatwindow").innerHTML+ XMLHttp.responseText
moveDivDown()
}
catch (e){}
}
}

/*RECEIVE FROM SERVER*/
function checkResponse()
{
XMLHttp2 = GetXmlHttpObject()
if (XMLHttp2==null)
{
alert ("Browser does not support HTTP Request")
return
}

var url=""
url=url+"?r=C"
url=url+"&amp;sid="+Math.random()
XMLHttp2.onreadystatechange=stateChanged2
XMLHttp2.open("GET",url,true)
XMLHttp2.send(null)
}

function stateChanged2()
{
if (XMLHttp2.readyState==4 || XMLHttp2.readyState=="complete")
{
try {
document.getElementById("chatwindow").innerHTML= document.getElementById("chatwindow").innerHTML + XMLHttp2.responseText
moveDivDown()
}
catch (e){}
//Again Check Updates after 3 Seconds
setTimeout("checkResponse()", 2000);
}
}

function IsNumeric(sText)
{
var ValidChars = "0123456789";
var IsNumber=true;
var Char;

for (i = 0; i < sText.length && IsNumber == true; i++)
{
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{
IsNumber = false;
}
}
return IsNumber;
}

</SCRIPT>
shaams
Cadet
 
Posts: 1
Joined: Tue Oct 07, 2008 11:42 am

Postby naaag » Thu Dec 04, 2008 11:57 pm

bhai where did u find in this script that its need a cmid.ctt file. anyway this website "www.sms4smile.com" i think using a zong sms gateway.msg come with number "+923122012193" sms1234.com also using same technique in warid sms i m only chk that but in asp
naaag
Cadet
 
Posts: 2
Joined: Wed Jul 18, 2007 12:08 pm
Yahoo Messenger: usman_92@yahoo.com
Location: Lahore


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron